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

Function test_get_rules

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

Source from the content-addressed store, hash-verified

3
4
5def test_get_rules():
6 md = MarkdownIt("zero")
7 # print(md.get_all_rules())
8 assert md.get_all_rules() == {
9 "core": [
10 "normalize",
11 "block",
12 "inline",
13 "linkify",
14 "replacements",
15 "smartquotes",
16 "text_join",
17 ],
18 "block": [
19 "table",
20 "code",
21 "fence",
22 "blockquote",
23 "hr",
24 "list",
25 "reference",
26 "html_block",
27 "heading",
28 "lheading",
29 "paragraph",
30 ],
31 "inline": [
32 "text",
33 "linkify",
34 "newline",
35 "escape",
36 "backticks",
37 "strikethrough",
38 "emphasis",
39 "link",
40 "image",
41 "autolink",
42 "html_inline",
43 "entity",
44 ],
45 "inline2": ["balance_pairs", "strikethrough", "emphasis", "fragments_join"],
46 }
47
48
49def test_load_presets():

Callers

nothing calls this directly

Calls 2

get_all_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…