mirror of
https://github.com/TxtDot/dalet.git
synced 2024-11-24 05:46:22 +03:00
doc: update daleth concept, add additional description for row, block
This commit is contained in:
parent
b3261ef4c8
commit
e8dd2c8f35
2 changed files with 21 additions and 10 deletions
26
README.md
26
README.md
|
@ -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).
|
This is Daleth (high level language that compiles to Daletl).
|
||||||
|
|
||||||
```yaml
|
```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 syntax
|
||||||
#
|
#
|
||||||
# tag: text body
|
# tag: text body
|
||||||
|
@ -38,15 +47,18 @@ meta[description]: This document describes Daleth syntax and some tags
|
||||||
h[1]: TxtDot revolution
|
h[1]: TxtDot revolution
|
||||||
p: TxtDot is a cool project
|
p: TxtDot is a cool project
|
||||||
|
|
||||||
# If no tag is specified, then the 'paragraph' tag is placed
|
# If no tag is specified, then the 'el' tag is placed
|
||||||
# () for block of text
|
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
|
Check Dalet too
|
||||||
This is one paragraph
|
This is one paragraph
|
||||||
)
|
)
|
||||||
|
|
||||||
This is another paragraph
|
( This is another paragraph )
|
||||||
br
|
|
||||||
|
|
||||||
# [ ] for argument
|
# [ ] for argument
|
||||||
row[center] {
|
row[center] {
|
||||||
|
@ -126,7 +138,7 @@ row {
|
||||||
# Description
|
# Description
|
||||||
# }
|
# }
|
||||||
table (
|
table (
|
||||||
+| Element | Description |
|
+| Tag | Description |
|
||||||
| h | Heading |
|
| h | Heading |
|
||||||
| p | Paragraph |
|
| p | Paragraph |
|
||||||
| img | Image |
|
| img | Image |
|
||||||
|
|
|
@ -124,8 +124,7 @@ ol: {
|
||||||
| body | tags |
|
| body | tags |
|
||||||
| argument | optional; start, center, end |
|
| 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.
|
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.
|
||||||
m
|
|
||||||
**Daleth example**:
|
**Daleth example**:
|
||||||
|
|
||||||
```txt
|
```txt
|
||||||
|
@ -486,7 +485,7 @@ disc[Click to expand]: I am Disclosure
|
||||||
| body | text, tags |
|
| body | text, tags |
|
||||||
| argument | optional; start, center, end |
|
| 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**:
|
**Daleth example**:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue