The prose between two fenced blocks: links with an unsafe destination are neutralized over the whole block (a destination may start on the line after the opening parenthesis), then the lines are escaped. Code spans are trusted only if EVERY line of the block is unambiguous (_code_spans): an unpaired run on one line can pair with a run on the next, which moves the boundary of the spans there, so one ambiguous line makes the whole block plain prose.

Methods

_escape_prose_block

_escape_prose_block(lines: List) -> str

The prose between two fenced blocks: links with an unsafe destination are neutralized over the whole block (a destination may start on the line after the opening parenthesis), then the lines are escaped. Code spans are trusted only if EVERY line of the block is unambiguous (_code_spans): an unpaired run on one line can pair with a run on the next, which moves the boundary of the spans there, so one ambiguous line makes the whole block plain prose.

ParameterTypeDescription
linesList

Generated with Flude

Copyright © 2026