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

Class SaneOListProcessor

markdown/extensions/sane_lists.py:33–44  ·  view source on GitHub ↗

Override `SIBLING_TAGS` to not include `ul` and set `LAZY_OL` to `False`.

Source from the content-addressed store, hash-verified

31
32
33class SaneOListProcessor(OListProcessor):
34 """ Override `SIBLING_TAGS` to not include `ul` and set `LAZY_OL` to `False`. """
35
36 SIBLING_TAGS = ['ol']
37 """ Exclude `ul` from list of siblings. """
38 LAZY_OL = False
39 """ Disable lazy list behavior. """
40
41 def __init__(self, parser: blockparser.BlockParser):
42 super().__init__(parser)
43 self.CHILD_RE = re.compile(r'^[ ]{0,%d}((\d+\.))[ ]+(.*)' %
44 (self.tab_length - 1))
45
46
47class SaneUListProcessor(UListProcessor):

Callers 1

extendMarkdownMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected