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

Function highlight_func

tests/test_port/test_misc.py:5–8  ·  view source on GitHub ↗
(str_, lang, attrs)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…