Helper: parse a single paragraph and return its inline children.
(md_text: str)
| 18 | |
| 19 | |
| 20 | def _parse_inline(md_text: str) -> list[SyntaxTreeNode]: |
| 21 | """Helper: parse a single paragraph and return its inline children.""" |
| 22 | md = MarkdownIt("commonmark") |
| 23 | root = SyntaxTreeNode(md.parse(md_text)) |
| 24 | # root > paragraph > inline > children |
| 25 | return root.children[0].children[0].children |
| 26 | |
| 27 | |
| 28 | class TestRenderInlineHtml: |
no outgoing calls
no test coverage detected