Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Correctly handle overlapping raw HTML matches - #769

Closed
PhilipTrauner wants to merge 1 commit into
Python-Markdown:masterfrom
PhilipTrauner:patch-1
Closed

PhilipTrauner wants to merge 1 commit into
Python-Markdown:masterfrom
PhilipTrauner:patch-1

Conversation

@PhilipTrauner

Copy link
Copy Markdown
Contributor

Should sufficiently fix #458.
Instead of rewriting the raw HTML substitution logic I chose to run it recursively until the output is equal to the previous input.

With kinds regards,
Philip Trauner

(and let me know if I missed something 😅 )

@waylan waylan left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is one way to fix this. We generally try to avoid recursive code as longer documents have been known to reach Python recursion limit in the past. However, In that case, that seems unlikely.

In addition to actually passing the tests, as per the Contributing Guide, this needs a test case and a comment in the release notes.

@PhilipTrauner

Copy link
Copy Markdown
Contributor Author

Yep, kinda messed up on the test front and especially didn't consider the "no replacement" case. Will submit a fix tomorrow.

With kind regards,
Philip Trauner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Placeholder in output for fenced code blocks nested in raw HTML blocks

2 participants