UNPKG

myst-spec

Version:

MyST schema, testcases, and typescript types

73 lines (70 loc) 1.47 kB
cases: - title: CommonMark code block mdast: type: root children: - type: code lang: '' value: print('this is python') myst: |- ``` print('this is python') ``` html: |- <pre><code>print('this is python') </code></pre> latex: |- \begin{verbatim} print('this is python') \end{verbatim} - title: CommonMark python code block id: code mdast: type: root children: - type: code lang: python value: print('this is python') myst: |- ```python print('this is python') ``` html: |- <pre><code class="language-python">print('this is python') </code></pre> latex: |- \begin{verbatim} print('this is python') \end{verbatim} - title: CommonMark indented code block mdast: type: root children: - type: paragraph children: - type: text value: 'Some JSON:' - type: code lang: '' value: |- { 'literal': '*text*' } myst: |- Some JSON: { 'literal': '*text*' } html: |- <p>Some JSON:</p> <pre><code>{ 'literal': '*text*' } </code></pre> latex: |- Some JSON: \begin{verbatim} { 'literal': '*text*' } \end{verbatim}