Register the processor. | Class Instance | Registry | Name | Priority | | --------------------------------------------------------------- | --------------------------------------
(self, md)
| 33 | """ Newline-to-break extension for Python-Markdown. """ |
| 34 | |
| 35 | def extendMarkdown(self, md): |
| 36 | """ Register the processor. |
| 37 | |
| 38 | | Class Instance | Registry | Name | Priority | |
| 39 | | --------------------------------------------------------------- | ------------------------------------------------------------- | ------ | :------: | |
| 40 | | [`SubstituteTagInlineProcessor`][markdown.inlinepatterns.SubstituteTagInlineProcessor] | [`inlinepatterns`][markdown.inlinepatterns.build_inlinepatterns] | `nl` | `5` | |
| 41 | |
| 42 | """ |
| 43 | # flake8: noqa: E501 38-40 |
| 44 | br_tag = SubstituteTagInlineProcessor(BR_RE, 'br') |
| 45 | md.inlinePatterns.register(br_tag, 'nl', 5) |
| 46 | |
| 47 | |
| 48 | def makeExtension(**kwargs): # pragma: no cover |
nothing calls this directly
no test coverage detected