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

Class LegacyEmExtension

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

Add legacy_em extension to Markdown class.

Source from the content-addressed store, hash-verified

40
41
42class LegacyEmExtension(Extension):
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 1

makeExtensionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected