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

Function test_block_at

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

Source from the content-addressed store, hash-verified

56
57
58def test_block_at(capsys):
59 def _plugin(_md: MarkdownIt) -> None:
60 _md.block.ruler.at("hr", block_rule)
61
62 MarkdownIt().use(_plugin).parse("a")
63 assert "plugin called" in capsys.readouterr().out
64
65
66def core_rule(state):

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…