setext: Shared safe-Setext policy for CommonMark-family readers#

Shared safe-Setext policy for CommonMark-family readers.

myform.setext.setext_headings_enabled(state: StateBlock) → bool#

Read the policy from universal, plugin, or source-format options.

myform.setext.parse_safe_setext_heading(state: StateBlock, l0: int, le: int, silent: bool) → bool#

Preserve an ambiguous unary nested dash as an empty list item.

The paragraph that the dash would underline ends where the paragraph rule would end it. A line that starts another block, such as a nested list item, belongs to no paragraph, so a dash below that line underlines nothing here.