feat: table syntax and formatting

This commit is contained in:
Artemy Egorov 2024-08-12 20:21:19 +03:00
parent 6099dbd236
commit d2fc37fed3
7 changed files with 172 additions and 20 deletions

View file

@ -117,7 +117,7 @@ row [
]]
]
# Table has custom format if text used
# Table has custom format
# +| cells | - primary column
# | cells | - secondary column
# | Element | Description | - converts to
@ -125,14 +125,14 @@ row [
# Element
# Description
# ]
# table {
# +| Tag | Description |
# | h | Heading |
# | p | Paragraph |
# | img | Image |
# | link | Link |
# | btn | Button |
# | ul | Unordered list |
# | br | Line break |
# +| quantity | 7 |
# }
{> table
[[ Tag | Description ]]
[ h | Heading ]
[ p | Paragraph ]
[ img | Image ]
[ link | Link ]
[ btn | Button ]
[ ul | Unordered list ]
[ br | Line break ]
[[ quantity | 7 ]]
}