NiklasRosenstein / pydoc-markdown

Create Python API documentation in Markdown format.
http://niklasrosenstein.github.io/pydoc-markdown/
Other
449 stars 104 forks source link

Fix escape_except_blockquotes for greater than 9 block quotes in 1 string #317

Closed jackgerrits closed 4 months ago

jackgerrits commented 4 months ago

When there are more than 9 block quotes in a string escape_except_blockquotes will fail do to the fact that the BLOCKQUOTE_TOKEN_{i} replacement will incorrectly match for both BLOCKQUOTE_TOKEN_1 and BLOCKQUOTE_TOKEN_10

This just extends it to BLOCKQUOTE_TOKEN_{i}_END so this accidental match doesn't happen.

NiklasRosenstein commented 4 months ago

Thanks @jackgerrits!