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

Function test_block_before

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

Source from the content-addressed store, hash-verified

48
49
50def test_block_before(capsys):
51 def _plugin(_md: MarkdownIt) -> None:
52 _md.block.ruler.before("hr", "new_rule", block_rule)
53
54 MarkdownIt().use(_plugin).parse("a")
55 assert "plugin called" in capsys.readouterr().out
56
57
58def test_block_at(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…