mirror of
https://github.com/TxtDot/dalet.git
synced 2024-12-04 10:36:21 +03:00
doc: fix daleth examples syntax in tags
This commit is contained in:
parent
8e888e5dfc
commit
b401c5dc9b
1 changed files with 23 additions and 28 deletions
|
@ -15,8 +15,8 @@ Most primitive tag. Also used if no tag is specified.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
el: I am Element
|
el: I am Element
|
||||||
el: [
|
el [
|
||||||
h(1): I am first level heading
|
h1: I am first level heading
|
||||||
]
|
]
|
||||||
Element also used if no tag is specified.
|
Element also used if no tag is specified.
|
||||||
```
|
```
|
||||||
|
@ -35,11 +35,11 @@ Heading is used for text formatting.
|
||||||
**Daleth example**:
|
**Daleth example**:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
h(1): Dalet
|
h1: Dalet
|
||||||
h(2): Daleth
|
h2: Daleth
|
||||||
h(3): High level
|
h3: High level
|
||||||
h(2): Daletl
|
h2: Daletl
|
||||||
h(3): Low level
|
h3: Low level
|
||||||
```
|
```
|
||||||
|
|
||||||
## 2. Paragraph
|
## 2. Paragraph
|
||||||
|
@ -57,7 +57,7 @@ Paragraph is used for text formatting.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
p: This is a paragraph
|
p: This is a paragraph
|
||||||
{ Paragraph also used if no tag specified but with `{\}` }
|
{- Paragraph also used with this custom syntax }
|
||||||
```
|
```
|
||||||
|
|
||||||
## 3. Line break
|
## 3. Line break
|
||||||
|
@ -136,17 +136,12 @@ row [
|
||||||
Right
|
Right
|
||||||
]
|
]
|
||||||
|
|
||||||
row(start) [
|
row "start" [
|
||||||
Left
|
Left
|
||||||
Right
|
Right
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
Argument converts to numbers in daletl.
|
|
||||||
|
|
||||||
start -> 0
|
|
||||||
end -> 1
|
|
||||||
|
|
||||||
## 7. Link
|
## 7. Link
|
||||||
|
|
||||||
| Property | Description |
|
| Property | Description |
|
||||||
|
@ -161,7 +156,7 @@ Link to other sites. On click the link opens in new tab.
|
||||||
**Daleth example**:
|
**Daleth example**:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
link(https://example.com): I am Link
|
link "https://example.com": I am Link
|
||||||
```
|
```
|
||||||
|
|
||||||
## 8. Navlink
|
## 8. Navlink
|
||||||
|
@ -178,7 +173,7 @@ Link to the same site. On click the link opens in current tab.
|
||||||
**Daleth example**:
|
**Daleth example**:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
navlink(/specification): I am Navlink
|
navlink "/specification": I am Navlink
|
||||||
```
|
```
|
||||||
|
|
||||||
## 9. Button
|
## 9. Button
|
||||||
|
@ -195,7 +190,7 @@ Same as link, but with button style.
|
||||||
**Daleth example**:
|
**Daleth example**:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
btn(https://example.com): I am Button
|
btn "https://example.com": I am Button
|
||||||
```
|
```
|
||||||
|
|
||||||
## 10. NavButton
|
## 10. NavButton
|
||||||
|
@ -212,7 +207,7 @@ Same as navlink, but with button style.
|
||||||
**Daleth example**:
|
**Daleth example**:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
navbtn(https://example.com): I am NavButton
|
navbtn "https://example.com": I am NavButton
|
||||||
```
|
```
|
||||||
|
|
||||||
## 11. Image
|
## 11. Image
|
||||||
|
@ -229,7 +224,7 @@ Displays an image.
|
||||||
**Daleth example**:
|
**Daleth example**:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
img(/dalet.png)
|
img "/dalet.png"
|
||||||
```
|
```
|
||||||
|
|
||||||
## 12. Table
|
## 12. Table
|
||||||
|
@ -247,8 +242,8 @@ Creates a table.
|
||||||
|
|
||||||
```txt
|
```txt
|
||||||
table {
|
table {
|
||||||
Name | Age
|
| Name | Age |
|
||||||
Elon | 53
|
| Elon | 53 |
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -374,7 +369,7 @@ Link to footnote.
|
||||||
**Daleth example**:
|
**Daleth example**:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
footlnk(1)
|
footlnk 1
|
||||||
```
|
```
|
||||||
|
|
||||||
## 20. Footnote
|
## 20. Footnote
|
||||||
|
@ -391,7 +386,7 @@ Creates footnote.
|
||||||
**Daleth example**:
|
**Daleth example**:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
footn(1): I am Footnote
|
footn 1: I am Footnote
|
||||||
```
|
```
|
||||||
|
|
||||||
## 21. Anchor
|
## 21. Anchor
|
||||||
|
@ -408,7 +403,7 @@ Creates anchor. Like `<a href="#argument"></a>` in HTML.
|
||||||
**Daleth example**:
|
**Daleth example**:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
a(0)
|
a0
|
||||||
```
|
```
|
||||||
|
|
||||||
## 22. Strikethrough
|
## 22. Strikethrough
|
||||||
|
@ -476,7 +471,7 @@ Creates disclosure element.
|
||||||
**Daleth example**:
|
**Daleth example**:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
disc(Click to expand): I am Disclosure
|
disc "Click to expand": I am Disclosure
|
||||||
```
|
```
|
||||||
|
|
||||||
## 26. Block
|
## 26. Block
|
||||||
|
@ -517,7 +512,7 @@ Creates carousel.
|
||||||
```txt
|
```txt
|
||||||
carousel [
|
carousel [
|
||||||
Example 1
|
Example 1
|
||||||
Example 2,
|
Example 2
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -535,7 +530,7 @@ Creates code block.
|
||||||
**Daleth example**:
|
**Daleth example**:
|
||||||
|
|
||||||
```txt
|
```txt
|
||||||
code(js): let code = "js"
|
code "js": let code = "js"
|
||||||
```
|
```
|
||||||
|
|
||||||
## 29. Pre-formatted text
|
## 29. Pre-formatted text
|
||||||
|
@ -569,5 +564,5 @@ Not displayed. Specifies metadata such as title, description. Must be before all
|
||||||
**Daleth example**:
|
**Daleth example**:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
meta(description): I am description
|
meta "description": I am description
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue