myst-spec
Version:
MyST schema, testcases, and typescript types
2,450 lines (2,397 loc) • 284 kB
YAML
cases:
- title: Tabs - example 1
mdast:
type: root
children:
- type: code
lang: ''
value: "foo\tbaz\t\tbim"
myst: "\tfoo\tbaz\t\tbim\n"
html: "<pre><code>foo\tbaz\t\tbim\n</code></pre>\n"
- title: Tabs - example 2
mdast:
type: root
children:
- type: code
lang: ''
value: "foo\tbaz\t\tbim"
myst: " \tfoo\tbaz\t\tbim\n"
html: "<pre><code>foo\tbaz\t\tbim\n</code></pre>\n"
- title: Tabs - example 3
mdast:
type: root
children:
- type: code
lang: ''
value: "a\ta\nὐ\ta"
myst: " a\ta\n ὐ\ta\n"
html: "<pre><code>a\ta\nὐ\ta\n</code></pre>\n"
- title: Tabs - example 4
mdast:
type: root
children:
- type: list
ordered: false
spread: false
children:
- type: listItem
spread: true
children:
- type: paragraph
children:
- type: text
value: foo
- type: paragraph
children:
- type: text
value: bar
myst: " - foo\n\n\tbar\n"
html: |-
<ul>
<li>
<p>foo</p>
<p>bar</p>
</li>
</ul>
- title: Tabs - example 5
mdast:
type: root
children:
- type: list
ordered: false
spread: false
children:
- type: listItem
spread: true
children:
- type: paragraph
children:
- type: text
value: foo
- type: code
lang: ''
value: ' bar'
myst: "- foo\n\n\t\tbar\n"
html: |-
<ul>
<li>
<p>foo</p>
<pre><code> bar
</code></pre>
</li>
</ul>
- title: Tabs - example 6
mdast:
type: root
children:
- type: blockquote
children:
- type: code
lang: ''
value: ' foo'
myst: ">\t\tfoo\n"
html: |-
<blockquote>
<pre><code> foo
</code></pre>
</blockquote>
- title: Tabs - example 7
mdast:
type: root
children:
- type: list
ordered: false
spread: false
children:
- type: listItem
spread: true
children:
- type: code
lang: ''
value: ' foo'
myst: "-\t\tfoo\n"
html: |-
<ul>
<li>
<pre><code> foo
</code></pre>
</li>
</ul>
- title: Tabs - example 8
mdast:
type: root
children:
- type: code
lang: ''
value: |-
foo
bar
myst: " foo\n\tbar\n"
html: |-
<pre><code>foo
bar
</code></pre>
- title: Tabs - example 9
mdast:
type: root
children:
- type: list
ordered: false
spread: false
children:
- type: listItem
spread: true
children:
- type: text
value: foo
- type: list
ordered: false
spread: false
children:
- type: listItem
spread: true
children:
- type: text
value: bar
- type: list
ordered: false
spread: false
children:
- type: listItem
spread: true
children:
- type: text
value: baz
myst: " - foo\n - bar\n\t - baz\n"
html: |-
<ul>
<li>foo
<ul>
<li>bar
<ul>
<li>baz</li>
</ul>
</li>
</ul>
</li>
</ul>
- title: Tabs - example 10
mdast:
type: root
children:
- type: heading
depth: 1
children:
- type: text
value: Foo
myst: "#\tFoo\n"
html: |-
<h1>Foo</h1>
- title: Tabs - example 11
mdast:
type: root
children:
- type: thematicBreak
myst: "*\t*\t*\t\n"
html: |-
<hr />
- title: Backslash escapes - example 12
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: '!"#$%&''()*+,-./:;<=>?@[\]^_`{|}~'
myst: |
\!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^\_\`\{\|\}\~
html: |-
<p>!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~</p>
- title: Backslash escapes - example 13
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: "\\\t\\A\\a\\ \\3\\φ\\«"
myst: "\\\t\\A\\a\\ \\3\\φ\\«\n"
html: "<p>\\\t\\A\\a\\ \\3\\φ\\«</p>\n"
- title: Backslash escapes - example 14
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: |-
*not emphasized*
<br/> not a tag
[not a link](/foo)
`not code`
1. not a list
* not a list
# not a heading
[foo]: /url "not a reference"
ö not a character entity
myst: |
\*not emphasized*
\<br/> not a tag
\[not a link](/foo)
\`not code`
1\. not a list
\* not a list
\# not a heading
\[foo]: /url "not a reference"
\ö not a character entity
html: |-
<p>*not emphasized*
<br/> not a tag
[not a link](/foo)
`not code`
1. not a list
* not a list
# not a heading
[foo]: /url "not a reference"
&ouml; not a character entity</p>
- title: Backslash escapes - example 15
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: \
- type: emphasis
children:
- type: text
value: emphasis
myst: |
\\*emphasis*
html: |-
<p>\<em>emphasis</em></p>
- title: Backslash escapes - example 16
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: foo
- type: break
- type: text
value: bar
myst: |
foo\
bar
html: |-
<p>foo<br />
bar</p>
- title: Backslash escapes - example 17
mdast:
type: root
children:
- type: paragraph
children:
- type: inlineCode
value: \[\`
myst: |
`` \[\` ``
html: |-
<p><code>\[\`</code></p>
- title: Backslash escapes - example 18
mdast:
type: root
children:
- type: code
lang: ''
value: \[\]
myst: |2
\[\]
html: |-
<pre><code>\[\]
</code></pre>
- title: Backslash escapes - example 19
mdast:
type: root
children:
- type: code
lang: ''
value: \[\]
myst: |
~~~
\[\]
~~~
html: |-
<pre><code>\[\]
</code></pre>
- title: Backslash escapes - example 20
mdast:
type: root
children:
- type: paragraph
children:
- type: link
url: http://example.com?find=%5C*
children:
- type: text
value: http://example.com?find=\*
myst: |
<http://example.com?find=\*>
html: >
<p><a
href="http://example.com?find=%5C*">http://example.com?find=\*</a></p>
- title: Backslash escapes - example 21
mdast:
type: root
children:
- type: html
value: <a href="/bar\/)">
myst: |
<a href="/bar\/)">
html: |-
<a href="/bar\/)">
- title: Backslash escapes - example 22
mdast:
type: root
children:
- type: paragraph
children:
- type: link
url: /bar*
title: ti*tle
children:
- type: text
value: foo
myst: |
[foo](/bar\* "ti\*tle")
html: |-
<p><a href="/bar*" title="ti*tle">foo</a></p>
- title: Backslash escapes - example 23
mdast:
type: root
children:
- type: paragraph
children:
- type: link
url: /bar*
title: ti*tle
children:
- type: text
value: foo
myst: |
[foo]
[foo]: /bar\* "ti\*tle"
html: |-
<p><a href="/bar*" title="ti*tle">foo</a></p>
- title: Backslash escapes - example 24
mdast:
type: root
children:
- type: code
lang: foo+bar
value: foo
myst: |
``` foo\+bar
foo
```
html: |-
<pre><code class="language-foo+bar">foo
</code></pre>
- title: Entity and numeric character references - example 25
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: "\u0020 & © Æ Ď\n¾ ℋ ⅆ\n∲ ≧̸"
myst: |
& © Æ Ď
¾ ℋ ⅆ
∲ ≧̸
html: |-
<p> & © Æ Ď
¾ ℋ ⅆ
∲ ≧̸</p>
- title: Entity and numeric character references - example 26
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: '# Ӓ Ϡ �'
myst: |
# Ӓ Ϡ �
html: |-
<p># Ӓ Ϡ �</p>
- title: Entity and numeric character references - example 27
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: '" ആ ಫ'
myst: |
" ആ ಫ
html: |-
<p>" ആ ಫ</p>
- title: Entity and numeric character references - example 28
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: |-
  &x; &#; &#x;
�
&#abcdef0;
&ThisIsNotDefined; &hi?;
myst: |
  &x; &#; &#x;
�
&#abcdef0;
&ThisIsNotDefined; &hi?;
html: |-
<p>&nbsp &x; &#; &#x;
&#87654321;
&#abcdef0;
&ThisIsNotDefined; &hi?;</p>
- title: Entity and numeric character references - example 29
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: '©'
myst: |
©
html: |-
<p>&copy</p>
- title: Entity and numeric character references - example 30
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: '&MadeUpEntity;'
myst: |
&MadeUpEntity;
html: |-
<p>&MadeUpEntity;</p>
- title: Entity and numeric character references - example 31
mdast:
type: root
children:
- type: html
value: <a href="öö.html">
myst: |
<a href="öö.html">
html: |-
<a href="öö.html">
- title: Entity and numeric character references - example 32
mdast:
type: root
children:
- type: paragraph
children:
- type: link
url: /f%C3%B6%C3%B6
title: föö
children:
- type: text
value: foo
myst: |
[foo](/föö "föö")
html: |-
<p><a href="/f%C3%B6%C3%B6" title="föö">foo</a></p>
- title: Entity and numeric character references - example 33
mdast:
type: root
children:
- type: paragraph
children:
- type: link
url: /f%C3%B6%C3%B6
title: föö
children:
- type: text
value: foo
myst: |
[foo]
[foo]: /föö "föö"
html: |-
<p><a href="/f%C3%B6%C3%B6" title="föö">foo</a></p>
- title: Entity and numeric character references - example 34
mdast:
type: root
children:
- type: code
lang: föö
value: foo
myst: |
``` föö
foo
```
html: |-
<pre><code class="language-föö">foo
</code></pre>
- title: Entity and numeric character references - example 35
mdast:
type: root
children:
- type: paragraph
children:
- type: inlineCode
value: föö
myst: |
`föö`
html: |-
<p><code>f&ouml;&ouml;</code></p>
- title: Entity and numeric character references - example 36
mdast:
type: root
children:
- type: code
lang: ''
value: föfö
myst: |2
föfö
html: |-
<pre><code>f&ouml;f&ouml;
</code></pre>
- title: Entity and numeric character references - example 37
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: |
*foo*
- type: emphasis
children:
- type: text
value: foo
myst: |
*foo*
*foo*
html: |-
<p>*foo*
<em>foo</em></p>
- title: Entity and numeric character references - example 38
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: '* foo'
- type: list
ordered: false
spread: false
children:
- type: listItem
spread: true
children:
- type: text
value: foo
myst: |
* foo
* foo
html: |-
<p>* foo</p>
<ul>
<li>foo</li>
</ul>
- title: Entity and numeric character references - example 39
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: |-
foo
bar
myst: |
foo bar
html: |-
<p>foo
bar</p>
- title: Entity and numeric character references - example 40
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: "\tfoo"
myst: |
	foo
html: "<p>\tfoo</p>\n"
- title: Entity and numeric character references - example 41
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: '[a](url "tit")'
myst: |
[a](url "tit")
html: |-
<p>[a](url "tit")</p>
- title: Precedence - example 42
mdast:
type: root
children:
- type: list
ordered: false
spread: false
children:
- type: listItem
spread: true
children:
- type: text
value: '`one'
- type: listItem
spread: true
children:
- type: text
value: two`
myst: |
- `one
- two`
html: |-
<ul>
<li>`one</li>
<li>two`</li>
</ul>
- title: Thematic breaks - example 43
mdast:
type: root
children:
- type: thematicBreak
- type: thematicBreak
- type: thematicBreak
myst: |
***
---
___
html: |-
<hr />
<hr />
<hr />
- title: Thematic breaks - example 45
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: '==='
myst: |
===
html: |-
<p>===</p>
- title: Thematic breaks - example 46
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: |-
--
**
__
myst: |
--
**
__
html: |-
<p>--
**
__</p>
- title: Thematic breaks - example 47
mdast:
type: root
children:
- type: thematicBreak
- type: thematicBreak
- type: thematicBreak
myst: |2
***
***
***
html: |-
<hr />
<hr />
<hr />
- title: Thematic breaks - example 48
mdast:
type: root
children:
- type: code
lang: ''
value: '***'
myst: |2
***
html: |-
<pre><code>***
</code></pre>
- title: Thematic breaks - example 49
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: |-
Foo
***
myst: |
Foo
***
html: |-
<p>Foo
***</p>
- title: Thematic breaks - example 50
mdast:
type: root
children:
- type: thematicBreak
myst: |
_____________________________________
html: |-
<hr />
- title: Thematic breaks - example 51
mdast:
type: root
children:
- type: thematicBreak
myst: |2
- - -
html: |-
<hr />
- title: Thematic breaks - example 52
mdast:
type: root
children:
- type: thematicBreak
myst: |2
** * ** * ** * **
html: |-
<hr />
- title: Thematic breaks - example 53
mdast:
type: root
children:
- type: thematicBreak
myst: |
- - - -
html: |-
<hr />
- title: Thematic breaks - example 54
mdast:
type: root
children:
- type: thematicBreak
myst: |
- - - -
html: |-
<hr />
- title: Thematic breaks - example 55
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: _ _ _ _ a
- type: paragraph
children:
- type: text
value: a------
- type: paragraph
children:
- type: text
value: '---a---'
myst: |
_ _ _ _ a
a------
---a---
html: |-
<p>_ _ _ _ a</p>
<p>a------</p>
<p>---a---</p>
- title: Thematic breaks - example 56
mdast:
type: root
children:
- type: paragraph
children:
- type: emphasis
children:
- type: text
value: '-'
myst: |2
*-*
html: |-
<p><em>-</em></p>
- title: Thematic breaks - example 57
mdast:
type: root
children:
- type: list
ordered: false
spread: false
children:
- type: listItem
spread: true
children:
- type: text
value: foo
- type: thematicBreak
- type: list
ordered: false
spread: false
children:
- type: listItem
spread: true
children:
- type: text
value: bar
myst: |
- foo
***
- bar
html: |-
<ul>
<li>foo</li>
</ul>
<hr />
<ul>
<li>bar</li>
</ul>
- title: Thematic breaks - example 58
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: Foo
- type: thematicBreak
- type: paragraph
children:
- type: text
value: bar
myst: |
Foo
***
bar
html: |-
<p>Foo</p>
<hr />
<p>bar</p>
- title: Thematic breaks - example 59
mdast:
type: root
children:
- type: heading
depth: 2
children:
- type: text
value: Foo
- type: paragraph
children:
- type: text
value: bar
myst: |
Foo
---
bar
html: |-
<h2>Foo</h2>
<p>bar</p>
- title: Thematic breaks - example 60
mdast:
type: root
children:
- type: list
ordered: false
spread: false
children:
- type: listItem
spread: true
children:
- type: text
value: Foo
- type: thematicBreak
- type: list
ordered: false
spread: false
children:
- type: listItem
spread: true
children:
- type: text
value: Bar
myst: |
* Foo
* * *
* Bar
html: |-
<ul>
<li>Foo</li>
</ul>
<hr />
<ul>
<li>Bar</li>
</ul>
- title: Thematic breaks - example 61
mdast:
type: root
children:
- type: list
ordered: false
spread: false
children:
- type: listItem
spread: true
children:
- type: text
value: Foo
- type: listItem
spread: true
children:
- type: thematicBreak
myst: |
- Foo
- * * *
html: |-
<ul>
<li>Foo</li>
<li>
<hr />
</li>
</ul>
- title: ATX headings - example 62
mdast:
type: root
children:
- type: heading
depth: 1
children:
- type: text
value: foo
- type: heading
depth: 2
children:
- type: text
value: foo
- type: heading
depth: 3
children:
- type: text
value: foo
- type: heading
depth: 4
children:
- type: text
value: foo
- type: heading
depth: 5
children:
- type: text
value: foo
- type: heading
depth: 6
children:
- type: text
value: foo
myst: |
# foo
## foo
### foo
#### foo
##### foo
###### foo
html: |-
<h1>foo</h1>
<h2>foo</h2>
<h3>foo</h3>
<h4>foo</h4>
<h5>foo</h5>
<h6>foo</h6>
- title: ATX headings - example 63
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: '####### foo'
myst: |
####### foo
html: |-
<p>####### foo</p>
- title: ATX headings - example 64
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: '#5 bolt'
- type: paragraph
children:
- type: text
value: '#hashtag'
myst: |
#5 bolt
#hashtag
html: |-
<p>#5 bolt</p>
<p>#hashtag</p>
- title: ATX headings - example 65
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: '## foo'
myst: |
\## foo
html: |-
<p>## foo</p>
- title: ATX headings - example 66
mdast:
type: root
children:
- type: heading
depth: 1
children:
- type: text
value: 'foo '
- type: emphasis
children:
- type: text
value: bar
- type: text
value: ' *baz*'
myst: |
# foo *bar* \*baz\*
html: |-
<h1>foo <em>bar</em> *baz*</h1>
- title: ATX headings - example 67
mdast:
type: root
children:
- type: heading
depth: 1
children:
- type: text
value: foo
myst: |
# foo
html: |-
<h1>foo</h1>
- title: ATX headings - example 68
mdast:
type: root
children:
- type: heading
depth: 3
children:
- type: text
value: foo
- type: heading
depth: 2
children:
- type: text
value: foo
- type: heading
depth: 1
children:
- type: text
value: foo
myst: |2
### foo
## foo
# foo
html: |-
<h3>foo</h3>
<h2>foo</h2>
<h1>foo</h1>
- title: ATX headings - example 69
mdast:
type: root
children:
- type: code
lang: ''
value: '# foo'
myst: |2
# foo
html: |-
<pre><code># foo
</code></pre>
- title: ATX headings - example 70
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: |-
foo
# bar
myst: |
foo
# bar
html: |-
<p>foo
# bar</p>
- title: ATX headings - example 71
mdast:
type: root
children:
- type: heading
depth: 2
children:
- type: text
value: foo
- type: heading
depth: 3
children:
- type: text
value: bar
myst: |
## foo ##
### bar ###
html: |-
<h2>foo</h2>
<h3>bar</h3>
- title: ATX headings - example 72
mdast:
type: root
children:
- type: heading
depth: 1
children:
- type: text
value: foo
- type: heading
depth: 5
children:
- type: text
value: foo
myst: |
# foo ##################################
##### foo ##
html: |-
<h1>foo</h1>
<h5>foo</h5>
- title: ATX headings - example 73
mdast:
type: root
children:
- type: heading
depth: 3
children:
- type: text
value: foo
myst: |
### foo ###
html: |-
<h3>foo</h3>
- title: ATX headings - example 74
mdast:
type: root
children:
- type: heading
depth: 3
children:
- type: text
value: 'foo ### b'
myst: |
### foo ### b
html: |-
<h3>foo ### b</h3>
- title: ATX headings - example 75
mdast:
type: root
children:
- type: heading
depth: 1
children:
- type: text
value: foo#
myst: |
# foo#
html: |-
<h1>foo#</h1>
- title: ATX headings - example 76
mdast:
type: root
children:
- type: heading
depth: 3
children:
- type: text
value: 'foo ###'
- type: heading
depth: 2
children:
- type: text
value: 'foo ###'
- type: heading
depth: 1
children:
- type: text
value: 'foo #'
myst: |
### foo \###
## foo #\##
# foo \#
html: |-
<h3>foo ###</h3>
<h2>foo ###</h2>
<h1>foo #</h1>
- title: ATX headings - example 77
mdast:
type: root
children:
- type: thematicBreak
- type: heading
depth: 2
children:
- type: text
value: foo
- type: thematicBreak
myst: |
****
## foo
****
html: |-
<hr />
<h2>foo</h2>
<hr />
- title: ATX headings - example 78
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: Foo bar
- type: heading
depth: 1
children:
- type: text
value: baz
- type: paragraph
children:
- type: text
value: Bar foo
myst: |
Foo bar
# baz
Bar foo
html: |-
<p>Foo bar</p>
<h1>baz</h1>
<p>Bar foo</p>
- title: ATX headings - example 79
mdast:
type: root
children:
- type: heading
depth: 2
children: []
- type: heading
depth: 1
children: []
- type: heading
depth: 3
children: []
myst: |
##
#
### ###
html: |-
<h2></h2>
<h1></h1>
<h3></h3>
- title: Setext headings - example 80
mdast:
type: root
children:
- type: heading
depth: 1
children:
- type: text
value: 'Foo '
- type: emphasis
children:
- type: text
value: bar
- type: heading
depth: 2
children:
- type: text
value: 'Foo '
- type: emphasis
children:
- type: text
value: bar
myst: |
Foo *bar*
=========
Foo *bar*
---------
html: |-
<h1>Foo <em>bar</em></h1>
<h2>Foo <em>bar</em></h2>
- title: Setext headings - example 81
mdast:
type: root
children:
- type: heading
depth: 1
children:
- type: text
value: 'Foo '
- type: emphasis
children:
- type: text
value: |-
bar
baz
myst: |
Foo *bar
baz*
====
html: |-
<h1>Foo <em>bar
baz</em></h1>
- title: Setext headings - example 82
mdast:
type: root
children:
- type: heading
depth: 1
children:
- type: text
value: 'Foo '
- type: emphasis
children:
- type: text
value: |-
bar
baz
myst: " Foo *bar\nbaz*\t\n====\n"
html: |-
<h1>Foo <em>bar
baz</em></h1>
- title: Setext headings - example 83
mdast:
type: root
children:
- type: heading
depth: 2
children:
- type: text
value: Foo
- type: heading
depth: 1
children:
- type: text
value: Foo
myst: |
Foo
-------------------------
Foo
=
html: |-
<h2>Foo</h2>
<h1>Foo</h1>
- title: Setext headings - example 84
mdast:
type: root
children:
- type: heading
depth: 2
children:
- type: text
value: Foo
- type: heading
depth: 2
children:
- type: text
value: Foo
- type: heading
depth: 1
children:
- type: text
value: Foo
myst: |2
Foo
---
Foo
-----
Foo
===
html: |-
<h2>Foo</h2>
<h2>Foo</h2>
<h1>Foo</h1>
- title: Setext headings - example 85
mdast:
type: root
children:
- type: code
lang: ''
value: |-
Foo
---
Foo
- type: thematicBreak
myst: |2
Foo
---
Foo
---
html: |-
<pre><code>Foo
---
Foo
</code></pre>
<hr />
- title: Setext headings - example 86
mdast:
type: root
children:
- type: heading
depth: 2
children:
- type: text
value: Foo
myst: |
Foo
----
html: |-
<h2>Foo</h2>
- title: Setext headings - example 87
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: |-
Foo
---
myst: |
Foo
---
html: |-
<p>Foo
---</p>
- title: Setext headings - example 88
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: |-
Foo
= =
- type: paragraph
children:
- type: text
value: Foo
- type: thematicBreak
myst: |
Foo
= =
Foo
--- -
html: |-
<p>Foo
= =</p>
<p>Foo</p>
<hr />
- title: Setext headings - example 89
mdast:
type: root
children:
- type: heading
depth: 2
children:
- type: text
value: Foo
myst: |
Foo
-----
html: |-
<h2>Foo</h2>
- title: Setext headings - example 90
mdast:
type: root
children:
- type: heading
depth: 2
children:
- type: text
value: Foo\
myst: |
Foo\
----
html: |-
<h2>Foo\</h2>
- title: Setext headings - example 91
mdast:
type: root
children:
- type: heading
depth: 2
children:
- type: text
value: '`Foo'
- type: paragraph
children:
- type: text
value: '`'
- type: heading
depth: 2
children:
- type: text
value: <a title="a lot
- type: paragraph
children:
- type: text
value: of dashes"/>
myst: |
`Foo
----
`
<a title="a lot
---
of dashes"/>
html: |-
<h2>`Foo</h2>
<p>`</p>
<h2><a title="a lot</h2>
<p>of dashes"/></p>
- title: Setext headings - example 92
mdast:
type: root
children:
- type: blockquote
children:
- type: paragraph
children:
- type: text
value: Foo
- type: thematicBreak
myst: |
> Foo
---
html: |-
<blockquote>
<p>Foo</p>
</blockquote>
<hr />
- title: Setext headings - example 93
mdast:
type: root
children:
- type: blockquote
children:
- type: paragraph
children:
- type: text
value: |-
foo
bar
===
myst: |
> foo
bar
===
html: |-
<blockquote>
<p>foo
bar
===</p>
</blockquote>
- title: Setext headings - example 94
mdast:
type: root
children:
- type: list
ordered: false
spread: false
children:
- type: listItem
spread: true
children:
- type: text
value: Foo
- type: thematicBreak
myst: |
- Foo
---
html: |-
<ul>
<li>Foo</li>
</ul>
<hr />
- title: Setext headings - example 95
mdast:
type: root
children:
- type: heading
depth: 2
children:
- type: text
value: |-
Foo
Bar
myst: |
Foo
Bar
---
html: |-
<h2>Foo
Bar</h2>
- title: Setext headings - example 96
mdast:
type: root
children:
- type: thematicBreak
- type: heading
depth: 2
children:
- type: text
value: Foo
- type: heading
depth: 2
children:
- type: text
value: Bar
- type: paragraph
children:
- type: text
value: Baz
myst: |
---
Foo
---
Bar
---
Baz
html: |-
<hr />
<h2>Foo</h2>
<h2>Bar</h2>
<p>Baz</p>
- title: Setext headings - example 97
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: '===='
myst: |
====
html: |-
<p>====</p>
- title: Setext headings - example 98
mdast:
type: root
children:
- type: thematicBreak
- type: thematicBreak
myst: |
---
---
html: |-
<hr />
<hr />
- title: Setext headings - example 99
mdast:
type: root
children:
- type: list
ordered: false
spread: false
children:
- type: listItem
spread: true
children:
- type: text
value: foo
- type: thematicBreak
myst: |
- foo
-----
html: |-
<ul>
<li>foo</li>
</ul>
<hr />
- title: Setext headings - example 100
mdast:
type: root
children:
- type: code
lang: ''
value: foo
- type: thematicBreak
myst: |2
foo
---
html: |-
<pre><code>foo
</code></pre>
<hr />
- title: Setext headings - example 101
mdast:
type: root
children:
- type: blockquote
children:
- type: paragraph
children:
- type: text
value: foo
- type: thematicBreak
myst: |
> foo
-----
html: |-
<blockquote>
<p>foo</p>
</blockquote>
<hr />
- title: Setext headings - example 102
mdast:
type: root
children:
- type: heading
depth: 2
children:
- type: text
value: '> foo'
myst: |
\> foo
------
html: |-
<h2>> foo</h2>
- title: Setext headings - example 103
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: Foo
- type: heading
depth: 2
children:
- type: text
value: bar
- type: paragraph
children:
- type: text
value: baz
myst: |
Foo
bar
---
baz
html: |-
<p>Foo</p>
<h2>bar</h2>
<p>baz</p>
- title: Setext headings - example 104
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: |-
Foo
bar
- type: thematicBreak
- type: paragraph
children:
- type: text
value: baz
myst: |
Foo
bar
---
baz
html: |-
<p>Foo
bar</p>
<hr />
<p>baz</p>
- title: Setext headings - example 105
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: |-
Foo
bar
- type: thematicBreak
- type: paragraph
children:
- type: text
value: baz
myst: |
Foo
bar
* * *
baz
html: |-
<p>Foo
bar</p>
<hr />
<p>baz</p>
- title: Setext headings - example 106
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: |-
Foo
bar
---
baz
myst: |
Foo
bar
\---
baz
html: |-
<p>Foo
bar
---
baz</p>
- title: Indented code blocks - example 107
mdast:
type: root
children:
- type: code
lang: ''
value: |-
a simple
indented code block
myst: |2
a simple
indented code block
html: |-
<pre><code>a simple
indented code block
</code></pre>
- title: Indented code blocks - example 108
mdast:
type: root
children:
- type: list
ordered: false
spread: false
children:
- type: listItem
spread: true
children:
- type: paragraph
children:
- type: text
value: foo
- type: paragraph
children:
- type: text
value: bar
myst: |2
- foo
bar
html: |-
<ul>
<li>
<p>foo</p>
<p>bar</p>
</li>
</ul>
- title: Indented code blocks - example 109
mdast:
type: root
children:
- type: list
ordered: true
start: 1
spread: false
children:
- type: listItem
spread: true
children:
- type: paragraph
children:
- type: text
value: foo
- type: list
ordered: false
spread: false
children:
- type: listItem
spread: true
children:
- type: text
value: bar
myst: |
1. foo
- bar
html: |-
<ol>
<li>
<p>foo</p>
<ul>
<li>bar</li>
</ul>
</li>
</ol>
- title: Indented code blocks - example 110
mdast:
type: root
children:
- type: code
lang: ''
value: |-
<a/>
*hi*
- one
myst: |2
<a/>
*hi*
- one
html: |-
<pre><code><a/>
*hi*
- one
</code></pre>
- title: Indented code blocks - example 111
mdast:
type: root
children:
- type: code
lang: ''
value: |-
chunk1
chunk2
chunk3
myst: |2
chunk1
chunk2
chunk3
html: |-
<pre><code>chunk1
chunk2
chunk3
</code></pre>
- title: Indented code blocks - example 112
mdast:
type: root
children:
- type: code
lang: ''
value: |-
chunk1
chunk2
myst: |2
chunk1
chunk2
html: |-
<pre><code>chunk1
chunk2
</code></pre>
- title: Indented code blocks - example 113
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: |-
Foo
bar
myst: |+
Foo
bar
html: |-
<p>Foo
bar</p>
- title: Indented code blocks - example 114
mdast:
type: root
children:
- type: code
lang: ''
value: foo
- type: paragraph
children:
- type: text
value: bar
myst: |2
foo
bar
html: |-
<pre><code>foo
</code></pre>
<p>bar</p>
- title: Indented code blocks - example 115
mdast:
type: root
children:
- type: heading
depth: 1
children:
- type: text
value: Heading
- type: code
lang: ''
value: foo
- type: heading
depth: 2
children:
- type: text
value: Heading
- type: code
lang: ''
value: foo
- type: thematicBreak
myst: |
# Heading
foo
Heading
------
foo
----
html: |-
<h1>Heading</h1>
<pre><code>foo
</code></pre>
<h2>Heading</h2>
<pre><code>foo
</code></pre>
<hr />
- title: Indented code blocks - example 116
mdast:
type: root
children:
- type: code
lang: ''
value: |2-
foo
bar
myst: |2
foo
bar
html: |-
<pre><code> foo
bar
</code></pre>
- title: Indented code blocks - example 117
mdast:
type: root
children:
- type: code
lang: ''
value: foo
myst: |2+
foo
html: |-
<pre><code>foo
</code></pre>
- title: Indented code blocks - example 118
mdast:
type: root
children:
- type: code
lang: ''
value: 'foo '
myst: ' foo '
html: |-
<pre><code>foo
</code></pre>
- title: Fenced code blocks - example 119
mdast:
type: root
children:
- type: code
lang: ''
value: |-
<
>
myst: |
```
<
>
```
html: |-
<pre><code><
>
</code></pre>
- title: Fenced code blocks - example 120
mdast:
type: root
children:
- type: code
lang: ''
value: |-
<
>
myst: |
~~~
<
>
~~~
html: |-
<pre><code><
>
</code></pre>
- title: Fenced code blocks - example 121
mdast:
type: root
children:
- type: paragraph
children:
- type: inlineCode
value: foo
myst: |
``
foo
``
html: |-
<p><code>foo</code></p>
- title: Fenced code blocks - example 122
mdast:
type: root
children:
- type: code
lang: ''
value: |-
aaa
~~~
myst: |
```
aaa
~~~
```
html: |-
<pre><code>aaa
~~~
</code></pre>
- title: Fenced code blocks - example 123
mdast:
type: root
children:
- type: code
lang: ''
value: |-
aaa
```
myst: |
~~~
aaa
```
~~~
html: |-
<pre><code>aaa
```
</code></pre>
- title: Fenced code blocks - example 124
mdast:
type: root
children:
- type: code
lang: ''
value: |-
aaa
```
myst: |
````
aaa
```
``````
html: |-
<pre><code>aaa
```
</code></pre>
- title: Fenced code blocks - example 125
mdast:
type: root
children:
- type: code
lang: ''
value: |-
aaa
~~~
myst: |
~~~~
aaa
~~~
~~~~
html: |-
<pre><code>aaa
~~~
</code></pre>
- title: Fenced code blocks - example 126
mdast:
type: root
children:
- type: code
lang: ''
value: ''
myst: |
```
html: |-
<pre><code></code></pre>
- title: Fenced code blocks - example 127
mdast:
type: root
children:
- type: code
lang: ''
value: |-
```
aaa
myst: |
`````
```
aaa
html: |-
<pre><code>
```
aaa
</code></pre>
- title: Fenced code blocks - example 128
mdast:
type: root
children:
- type: blockquote
children:
- type: code
lang: ''
value: aaa
- type: paragraph
children:
- type: text
value: bbb
myst: |
> ```
> aaa
bbb
html: |-
<blockquote>
<pre><code>aaa
</code></pre>
</blockquote>
<p>bbb</p>
- title: Fenced code blocks - example 129
mdast:
type: root
children:
- type: code
lang: ''
value: "\n "
myst: |
```
```
html: |-
<pre><code>
</code></pre>
- title: Fenced code blocks - example 130
mdast:
type: root
children:
- type: code
lang: ''
value: ''
myst: |
```
```
html: |-
<pre><code></code></pre>
- title: Fenced code blocks - example 131
mdast:
type: root
children:
- type: code
lang: ''
value: |-
aaa
aaa
myst: |2
```
aaa
aaa
```
html: |-
<pre><code>aaa
aaa
</code></pre>
- title: Fenced code blocks - example 132
mdast:
type: root
children:
- type: code
lang: ''
value: |-
aaa
aaa
aaa
myst: |2
```
aaa
aaa
aaa
```
html: |-
<pre><code>aaa
aaa
aaa
</code></pre>
- title: Fenced code blocks - example 133
mdast:
type: root
children:
- type: code
lang: ''
value: |-
aaa
aaa
aaa
myst: |2
```
aaa
aaa