ttcMD: Changes link decoration to ~~ instead of ```

This commit is contained in:
Emmaline Autumn 2024-03-16 06:53:48 -06:00
parent 5e038ff5cf
commit 9cbd0a62ca
3 changed files with 12 additions and 10 deletions

View File

@ -335,7 +335,7 @@ export const buildOnlyDefaultElements = () => {
(s, rx) => { (s, rx) => {
let preset, let preset,
[_, title, href] = s.match(new RegExp(rx, ""))!; [_, title, href] = s.match(new RegExp(rx, ""))!;
const match = title.match(/`{3}(cta|button)?(.*)/); const match = title.match(/~{2}(cta|button)?(.*)/);
if (match) { if (match) {
[_, preset, title] = match; [_, preset, title] = match;

View File

@ -42,17 +42,17 @@ You can use the typical link syntax `[link name](/link/location)`, but there are
**Primary Button:** **Primary Button:**
Prefix the link name with `button` to create a button. Prefix the link name with `~~button` to create a button.
`[```button link name](#links)` produces: `[~~button link name](#links)` produces:
[```button link name](#links) [~~button link name](#links)
**Call to Action:** **Call to Action:**
Prefix the link name with ````cta` to create a modestly styled button/call to action. Prefix the link name with `~~cta` to create a modestly styled button/call to action.
`[```cta link name](#links)` produces: `[~~cta link name](#links)` produces:
[```cta link name](#links) [~~cta link name](#links)
### Tables ### Tables
@ -321,6 +321,8 @@ This card will end up in the third column...
The following elements are used in combination with ttcQuery. These are definitely more advanced. If you understand generally what "dot notation" is in programming, then it will be a lot easier, but don't let that deter you. Once you understand what it is, you can come back to this and be able to create really cool layouts! The following elements are used in combination with ttcQuery. These are definitely more advanced. If you understand generally what "dot notation" is in programming, then it will be a lot easier, but don't let that deter you. Once you understand what it is, you can come back to this and be able to create really cool layouts!
Query elements (aside for the on-demand resolver) are calculated before parsing the markdown. Will that matter to you? Probably not, but could be necessary as you think about how you are writing your query elements.
### Resolver ### Resolver
The resolver is the basic element that allows you to get data, but it has a lot of functionality to it. It has not been fully implemented yet The resolver is the basic element that allows you to get data, but it has a lot of functionality to it. It has not been fully implemented yet

View File

@ -35,7 +35,7 @@ your approval and contributions carry.
If your score is high enough, and a contribution request has If your score is high enough, and a contribution request has
enough approvals, you can even be the one to merge it in! enough approvals, you can even be the one to merge it in!
[```cta Learn More](/help/Game%20Systems.md) [~~cta Learn More](/help/Game%20Systems.md)
]] ]]
@ -59,7 +59,7 @@ The schema system makes use of a powerful custom query language
schema, we can reduce the amount of re-written content, while schema, we can reduce the amount of re-written content, while
maintaining the presence of data anywhere we need it. maintaining the presence of data anywhere we need it.
[```cta Learn More](/help/Schemas.md) [~~cta Learn More](/help/Schemas.md)
]] ]]
@ -85,7 +85,7 @@ The styling aspect is similar to a very trimmed down CSS, but
can accomplish quite a lot. For example, this page is actually can accomplish quite a lot. For example, this page is actually
built using ttcMD! built using ttcMD!
[```cta Learn More](/help/Publications.md) [~~cta Learn More](/help/Publications.md)
]] ]]