doc: update daleth concept, add additional description for row, block

This commit is contained in:
Artemy Egorov 2024-08-07 16:51:45 +03:00
parent b3261ef4c8
commit e8dd2c8f35
2 changed files with 21 additions and 10 deletions

View file

@ -19,6 +19,15 @@ Markup language ecosystem сombining small file size, big number of possibilitie
This is Daleth (high level language that compiles to Daletl).
```yaml
# multilines
#
# (text) - input is trimmed with indent
#
# (~n text) - n is number of minimum spaces to add after trimming with indent
# for each line
#
# (# text) - input not modified
#
# tag syntax
#
# tag: text body
@ -38,15 +47,18 @@ meta[description]: This document describes Daleth syntax and some tags
h[1]: TxtDot revolution
p: TxtDot is a cool project
# If no tag is specified, then the 'paragraph' tag is placed
# () for block of text
# If no tag is specified, then the 'el' tag is placed
This is element
br
# if no tag is specified but a '()' is present, then the 'p' tag is placed
# '\n' is deleted only in this format. If a break line is needed in a paragraph, use ' \n'.
(
Check Dalet too
This is one paragraph
Check Dalet too
This is one paragraph
)
This is another paragraph
br
( This is another paragraph )
# [ ] for argument
row[center] {
@ -126,7 +138,7 @@ row {
# Description
# }
table (
+| Element | Description |
+| Tag | Description |
| h | Heading |
| p | Paragraph |
| img | Image |

View file

@ -124,8 +124,7 @@ ol: {
| body | tags |
| argument | optional; start, center, end |
Splits the text into rows. The alignment argument specifies how the items inside the row are aligned. By default it is aligned to the start.
m
Splits the text into rows. The alignment argument specifies how the items inside the row are aligned horizontally. By default it is aligned to the start.
**Daleth example**:
```txt
@ -486,7 +485,7 @@ disc[Click to expand]: I am Disclosure
| body | text, tags |
| argument | optional; start, center, end |
Creates block element. Can be used for aligning. By default aligned to center.
Creates block element. Can be used for horizontal aligning. By default aligned to center.
**Daleth example**: