Register the processor. | Class Instance | Registry | Name | Priority | | ------------------------------------------------------------- | ---------------------------------------
(self, md)
| 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 | |
| 57 | def makeExtension(**kwargs): # pragma: no cover |
nothing calls this directly
no test coverage detected