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

Function test_block_after

tests/test_api/test_plugin_creation.py:42–47  ·  view source on GitHub ↗
(capsys)

Source from the content-addressed store, hash-verified

40
41
42def test_block_after(capsys):
43 def _plugin(_md: MarkdownIt) -> None:
44 _md.block.ruler.after("hr", "new_rule", block_rule)
45
46 MarkdownIt().use(_plugin).parse("a")
47 assert "plugin called" in capsys.readouterr().out
48
49
50def test_block_before(capsys):

Callers

nothing calls this directly

Calls 3

MarkdownItClass · 0.90
useMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…