()
| 2 | |
| 3 | |
| 4 | def 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 | |
| 16 | def test_ordered_list_info(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…