UNPKG

1.47 kBYAMLView Raw
1cases:
2 - title: CommonMark code block
3 mdast:
4 type: root
5 children:
6 - type: code
7 lang: ''
8 value: print('this is python')
9 myst: |-
10 ```
11 print('this is python')
12 ```
13 html: |-
14 <pre><code>print('this is python')
15 </code></pre>
16 latex: |-
17 \begin{verbatim}
18 print('this is python')
19 \end{verbatim}
20 - title: CommonMark python code block
21 id: code
22 mdast:
23 type: root
24 children:
25 - type: code
26 lang: python
27 value: print('this is python')
28 myst: |-
29 ```python
30 print('this is python')
31 ```
32 html: |-
33 <pre><code class="language-python">print('this is python')
34 </code></pre>
35 latex: |-
36 \begin{verbatim}
37 print('this is python')
38 \end{verbatim}
39 - title: CommonMark indented code block
40 mdast:
41 type: root
42 children:
43 - type: paragraph
44 children:
45 - type: text
46 value: 'Some JSON:'
47
48 - type: code
49 lang: ''
50 value: |-
51 {
52 'literal': '*text*'
53 }
54 myst: |-
55 Some JSON:
56
57 {
58 'literal': '*text*'
59 }
60 html: |-
61 <p>Some JSON:</p>
62 <pre><code>{
63 'literal': '*text*'
64 }
65 </code></pre>
66 latex: |-
67 Some JSON:
68 \begin{verbatim}
69 {
70 'literal': '*text*'
71 }
72 \end{verbatim}