Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trieloff/directivetest
https://github.com/trieloff/directivetest
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/trieloff/directivetest
- Owner: trieloff
- Created: 2021-01-15T10:25:54.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-20T14:21:50.000Z (about 4 years ago)
- Last Synced: 2024-11-18T08:12:10.368Z (2 months ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# directivetest
## MDAST Tree
```
root[8]
├─0 paragraph[1]
│ └─0 text "One column (\"special\"), two rows"
├─1 containerDirective[2]
│ │ attributes: {"columns":["special"]}
│ ├─0 containerDirective[1]
│ │ └─0 paragraph[1]
│ │ └─0 text "I am special"
│ └─1 containerDirective[1]
│ └─0 paragraph[1]
│ └─0 text "I am special, too"
├─2 paragraph[1]
│ └─0 text "Two columns (\"special\" and \"animal\"), two rows"
├─3 containerDirective[4]
│ │ attributes: {"columns":["special","animal"]}
│ ├─0 containerDirective[1]
│ │ └─0 paragraph[1]
│ │ └─0 text "I am special"
│ ├─1 containerDirective[1]
│ │ └─0 paragraph[1]
│ │ └─0 text "Woof"
│ ├─2 containerDirective[1]
│ │ └─0 paragraph[1]
│ │ └─0 text "I am special, too"
│ └─3 containerDirective[1]
│ └─0 paragraph[1]
│ └─0 text "Moo"
├─4 paragraph[1]
│ └─0 text "Two columns (\"special\" and untitled), two rows, last cell empty"
├─5 containerDirective[4]
│ │ attributes: {"columns":["special",null]}
│ ├─0 containerDirective[1]
│ │ └─0 paragraph[1]
│ │ └─0 text "I am special"
│ ├─1 containerDirective[1]
│ │ └─0 paragraph[1]
│ │ └─0 text "Woof"
│ ├─2 containerDirective[1]
│ │ └─0 paragraph[1]
│ │ └─0 text "I am special, too"
│ └─3 containerDirective[0]
├─6 paragraph[1]
│ └─0 text "Two columns (\"special\" and \"hello, world\"), two rows, last cell empty – this is where things break a bit, as commas in values are ambiguous."
└─7 containerDirective[4]
│ attributes: {"columns":["special","hello, world"]}
├─0 containerDirective[1]
│ └─0 paragraph[1]
│ └─0 text "I am special"
├─1 containerDirective[1]
│ └─0 paragraph[1]
│ └─0 text "Woof"
├─2 containerDirective[1]
│ └─0 paragraph[1]
│ └─0 text "I am special, too"
└─3 containerDirective[0]
```## Output
```markdown
One column ("special"), two rows::::block{columns="special"}
:::special
I am special
::::::special
I am special, too
:::
::::Two columns ("special" and "animal"), two rows
::::block{columns="special,animal"}
:::special
I am special
::::::animal
Woof
::::::special
I am special, too
::::::animal
Moo
:::
::::Two columns ("special" and untitled), two rows, last cell empty
::::block{columns="special,"}
:::special
I am special
::::::
Woof
::::::special
I am special, too
::::::
:::
::::Two columns ("special" and "hello, world"), two rows, last cell empty – this is where things break a bit, as commas in values are ambiguous.
::::block{columns="special,hello, world"}
:::special
I am special
::::::hello, world
Woof
::::::special
I am special, too
::::::hello, world
:::
::::```