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

Function test_inline_at

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

Source from the content-addressed store, hash-verified

27
28
29def test_inline_at(capsys):
30 def _plugin(_md: MarkdownIt) -> None:
31 _md.inline.ruler.at("text", inline_rule)
32
33 MarkdownIt().use(_plugin).parse("a")
34 assert "plugin called" in capsys.readouterr().out
35
36
37def block_rule(state, startLine, endLine, silent):

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…