1 | cases:
|
2 | - title: Simple comment
|
3 | mdast:
|
4 | type: root
|
5 | children:
|
6 | - type: mystComment
|
7 | value: A comment
|
8 | myst: |-
|
9 | % A comment
|
10 | html: |-
|
11 | <!--A comment-->
|
12 | - title: Comment between paragraphs
|
13 | id: comment
|
14 | mdast:
|
15 | type: root
|
16 | children:
|
17 | - type: paragraph
|
18 | children:
|
19 | - type: text
|
20 | value: Something
|
21 | - type: mystComment
|
22 | value: A comment
|
23 | - type: paragraph
|
24 | children:
|
25 | - type: text
|
26 | value: Something else
|
27 | myst: |-
|
28 | Something
|
29 | % A comment
|
30 | Something else
|
31 | html: |-
|
32 | <p>Something</p><!--A comment-->
|
33 | <p>Something else</p>
|
34 | - title: Comment with script tag
|
35 | mdast:
|
36 | type: root
|
37 | children:
|
38 | - type: paragraph
|
39 | children:
|
40 | - type: text
|
41 | value: Something
|
42 | - type: mystComment
|
43 | value: A comment --> <script>
|
44 | - type: paragraph
|
45 | children:
|
46 | - type: text
|
47 | value: Something else
|
48 | myst: |-
|
49 | Something
|
50 | % A comment --> <script>
|
51 | Something else
|
52 | html: |-
|
53 | <p>Something</p><!--A comment --> <script>-->
|
54 | <p>Something else</p>
|