ttcMD: mostly working nested grid parser

This commit is contained in:
2024-03-12 23:52:31 -06:00
parent 32eb0c7408
commit 23cf8c263d
6 changed files with 183 additions and 35 deletions

View File

@@ -8,6 +8,7 @@
- [Block-level Elements](#block-level-elements)
- [Accordions](#accordions)
- [Card](#card)
- [Grid](#grid)
# How do you use ttcMD?
@@ -101,6 +102,7 @@ super secret! I'll never tell!
]]
```
[[
Card text!
This is a real wild thing! Look, an accordion!
@@ -119,4 +121,49 @@ And hurt you.
[/accordion]
]]
/[]
### Grid
Grid blocks give you access to basic grid layouts. You define the number of columns in the grid by using a number of matching brackets.
[][][]
[[
```
[][][]
This will make three columns, just like how this is laid out right now.
Each element will get its own cell in the grid.
So each of these paragraphs will end up in a separate column.
/[]
```
]]
[[
```
[][]
This will make two columns
[[
Each column can use a different element
]]
/[]
```
]]
[[
This card will end up in the third column...
]]
[[
... but since there isn't enough for this one, it will automatically get moved to the next row.
]]
/[]

27
md/help articles/test.md Normal file
View File

@@ -0,0 +1,27 @@
# TEST
[][][]
[][][]
This will make three columns, just like how this is laid out right now.
Each element will get its own cell in the grid.
So each of these paragraphs will end up in a separate column.
/[]
[][]
This will make two columns
Each column can use a different element
/[]
This card will end up in the third column...
... but since there isn't enough for this one, it will automatically get moved to the next row.
/[]