Lists: Render list spelling from source precedent without merging lists#

Adjacent same-kind lists keep distinct delimiters, and a list item with a blank between its own blocks keeps the spacing that makes it loose. Each ordered item indents its contents by the width of its own marker.

Render list spelling from source precedent without merging lists.

Adjacent same-kind lists keep distinct delimiters, and a list item with a blank between its own blocks keeps the spacing that makes it loose. Each ordered item indents its contents by the width of its own marker.

myform.Lists.RULE = re.compile('([*-])(?:[ \\t]*\\1){2,}')#

A first line of nested empty bullets can look like one thematic break.

class myform.Lists.BulletList#

Render a bullet list, keeping its own or its root’s mark.

classmethod render(node: mdformat.renderer.RenderTreeNode, context: mdformat.renderer.RenderContext) → str#

Render one bullet list and its items.

class myform.Lists.OrderedList#

Render ordered lists using their first two numbers or an explicit option.

classmethod render(node: mdformat.renderer.RenderTreeNode, context: mdformat.renderer.RenderContext) → str#

Render one ordered list and its items.