ttcMD: Changes link decoration to ~~ instead of ```
This commit is contained in:
parent
5e038ff5cf
commit
9cbd0a62ca
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
||||
]]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user