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

Function test_inline_after

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

Source from the content-addressed store, hash-verified

11
12
13def test_inline_after(capsys):
14 def _plugin(_md: MarkdownIt) -> None:
15 _md.inline.ruler.after("text", "new_rule", inline_rule)
16
17 MarkdownIt().use(_plugin).parse("[")
18 assert "plugin called" in capsys.readouterr().out
19
20
21def test_inline_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…