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

Function test_reset

tests/test_api/test_main.py:152–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150
151
152def test_reset():
153 md = MarkdownIt("zero")
154 with md.reset_rules():
155 md.disable("inline")
156 assert md.get_active_rules() == {
157 "block": ["paragraph"],
158 "core": ["normalize", "block", "text_join"],
159 "inline": ["text"],
160 "inline2": ["balance_pairs", "fragments_join"],
161 }
162 assert md.get_active_rules() == {
163 "block": ["paragraph"],
164 "core": ["normalize", "block", "inline", "text_join"],
165 "inline": ["text"],
166 "inline2": ["balance_pairs", "fragments_join"],
167 }
168
169
170def test_parseInline():

Callers

nothing calls this directly

Calls 4

reset_rulesMethod · 0.95
disableMethod · 0.95
get_active_rulesMethod · 0.95
MarkdownItClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…