myst-spec
Version:
MyST schema, testcases, and typescript types
55 lines (54 loc) • 1.24 kB
YAML
cases:
- title: Simple comment
mdast:
type: root
children:
- type: mystComment
value: A comment
myst: |-
% A comment
html: |-
<!--A comment-->
- title: Comment between paragraphs
id: comment
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: Something
- type: mystComment
value: A comment
- type: paragraph
children:
- type: text
value: Something else
myst: |-
Something
% A comment
Something else
html: |-
<p>Something</p><!--A comment-->
<p>Something else</p>
- title: Comment with script tag
mdast:
type: root
children:
- type: paragraph
children:
- type: text
value: Something
- type: mystComment
value: A comment --> <script>
- type: paragraph
children:
- type: text
value: Something else
myst: |-
Something
% A comment --> <script>
Something else
html: |-
<p>Something</p><!--A comment --> <script>-->
<p>Something else</p>