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

Function test_highlight_arguments

tests/test_port/test_misc.py:4–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3
4def test_highlight_arguments():
5 def highlight_func(str_, lang, attrs):
6 assert lang == "a"
7 assert attrs == "b c d"
8 return "<pre><code>==" + str_ + "==</code></pre>"
9
10 conf = presets.commonmark.make()
11 conf["options"]["highlight"] = highlight_func
12 md = MarkdownIt(config=conf)
13 assert md.render("``` a b c d \nhl\n```") == "<pre><code>==hl\n==</code></pre>\n"
14
15
16def test_ordered_list_info():

Callers

nothing calls this directly

Calls 3

renderMethod · 0.95
MarkdownItClass · 0.90
makeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…