mirror of
https://github.com/TxtDot/dalet-rs.git
synced 2025-02-28 05:11:24 +03:00
feat: table syntax and formatting
This commit is contained in:
parent
6099dbd236
commit
d2fc37fed3
7 changed files with 172 additions and 20 deletions
|
@ -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 ]]
|
||||
}
|
Loading…
Add table
Reference in a new issue