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

Class SaneUListProcessor

markdown/extensions/sane_lists.py:47–56  ·  view source on GitHub ↗

Override `SIBLING_TAGS` to not include `ol`.

Source from the content-addressed store, hash-verified

45
46
47class SaneUListProcessor(UListProcessor):
48 """ Override `SIBLING_TAGS` to not include `ol`. """
49
50 SIBLING_TAGS = ['ul']
51 """ Exclude `ol` from list of siblings. """
52
53 def __init__(self, parser: blockparser.BlockParser):
54 super().__init__(parser)
55 self.CHILD_RE = re.compile(r'^[ ]{0,%d}(([*+-]))[ ]+(.*)' %
56 (self.tab_length - 1))
57
58
59class SaneListExtension(Extension):

Callers 1

extendMarkdownMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected