MCPcopy Create free account
hub / github.com/executablebooks/markdown-it-py / test_pretty

Function test_pretty

tests/test_tree.py:62–76  ·  view source on GitHub ↗
(file_regression)

Source from the content-addressed store, hash-verified

60
61
62def test_pretty(file_regression):
63 md = MarkdownIt("commonmark")
64 tokens = md.parse(
65 """
66# Header
67
68Here's some text and an image ![title](image.png)
69
701. a **list**
71
72> a *quote*
73 """
74 )
75 node = SyntaxTreeNode(tokens)
76 file_regression.check(node.pretty(indent=2, show_text=True), extension=".xml")
77
78
79def test_pretty_text_special(file_regression):

Callers

nothing calls this directly

Calls 4

parseMethod · 0.95
prettyMethod · 0.95
MarkdownItClass · 0.90
SyntaxTreeNodeClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…