From 9cbd0a62caf28b3e29c778f0d05f489416ee7740 Mon Sep 17 00:00:00 2001 From: Emma Date: Sat, 16 Mar 2024 06:53:48 -0600 Subject: [PATCH] ttcMD: Changes link decoration to ~~ instead of ``` --- lib/tcmd/TokenIdentifiers.tsx | 2 +- md/help articles/How to use ttcMD.md | 14 ++++++++------ md/home.md | 6 +++--- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/lib/tcmd/TokenIdentifiers.tsx b/lib/tcmd/TokenIdentifiers.tsx index c737af7..479f6c1 100644 --- a/lib/tcmd/TokenIdentifiers.tsx +++ b/lib/tcmd/TokenIdentifiers.tsx @@ -335,7 +335,7 @@ export const buildOnlyDefaultElements = () => { (s, rx) => { let preset, [_, title, href] = s.match(new RegExp(rx, ""))!; - const match = title.match(/`{3}(cta|button)?(.*)/); + const match = title.match(/~{2}(cta|button)?(.*)/); if (match) { [_, preset, title] = match; diff --git a/md/help articles/How to use ttcMD.md b/md/help articles/How to use ttcMD.md index 7c2a740..8b01e48 100644 --- a/md/help articles/How to use ttcMD.md +++ b/md/help articles/How to use ttcMD.md @@ -42,17 +42,17 @@ You can use the typical link syntax `[link name](/link/location)`, but there are **Primary Button:** - Prefix the link name with `button` to create a button. - `[```button link name](#links)` produces: + Prefix the link name with `~~button` to create a button. + `[~~button link name](#links)` produces: - [```button link name](#links) + [~~button link name](#links) **Call to Action:** - Prefix the link name with ````cta` to create a modestly styled button/call to action. - `[```cta link name](#links)` produces: + Prefix the link name with `~~cta` to create a modestly styled button/call to action. + `[~~cta link name](#links)` produces: - [```cta link name](#links) + [~~cta link name](#links) ### 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! +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 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 diff --git a/md/home.md b/md/home.md index 9075922..4d6611d 100644 --- a/md/home.md +++ b/md/home.md @@ -35,7 +35,7 @@ your approval and contributions carry. If your score is high enough, and a contribution request has 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 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 built using ttcMD! -[```cta Learn More](/help/Publications.md) +[~~cta Learn More](/help/Publications.md) ]]