MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / extendMarkdown

Method extendMarkdown

markdown/extensions/legacy_em.py:45–54  ·  view source on GitHub ↗

Register the processor. | Class Instance | Registry | Name | Priority | | ------------------------------------------------------------- | ---------------------------------------

(self, md)

Source from the content-addressed store, hash-verified

43 """ Add legacy_em extension to Markdown class."""
44
45 def extendMarkdown(self, md):
46 """ Register the processor.
47
48 | Class Instance | Registry | Name | Priority |
49 | ------------------------------------------------------------- | ---------------------------------------------------------------- | ------ | :------: |
50 | [`LegacyUnderscoreProcessor`][markdown.extensions.legacy_em.LegacyUnderscoreProcessor] | [`inlinepatterns`][markdown.inlinepatterns.build_inlinepatterns] | `em_strong2` | `50` |
51
52 """
53 # flake8: noqa: E501 48-50
54 md.inlinePatterns.register(LegacyUnderscoreProcessor(r'_'), 'em_strong2', 50)
55
56
57def makeExtension(**kwargs): # pragma: no cover

Callers

nothing calls this directly

Calls 2

registerMethod · 0.80

Tested by

no test coverage detected