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

Fix escaping of HTML special chars (<, >, &) in .toc_tokens - #907

Merged
waylan merged 2 commits into
Python-Markdown:masterfrom
jimporter:toc-html-special-chars
Feb 12, 2020
Merged

waylan merged 2 commits into
Python-Markdown:masterfrom
jimporter:toc-html-special-chars

Conversation

@jimporter

Copy link
Copy Markdown
Contributor

This should fix the problem I found in mkdocs/mkdocs#1970. I think the tests cover all the necessary cases. (I'm a little surprised that escaping where I did works though; I guess the etree.Element.text setter used for making the HTML TOC accepts escaped or unescaped HTML special chars.)

Sorry I didn't catch this the first time around!

@waylan

waylan commented Feb 8, 2020

Copy link
Copy Markdown
Member

Looks good. As per the contributing guide, this just needs a comment in the change log under 3.2.1.

@jimporter
jimporter force-pushed the toc-html-special-chars branch from b452329 to c96f569 Compare February 8, 2020 23:44
@jimporter
jimporter force-pushed the toc-html-special-chars branch from c96f569 to c256c80 Compare February 8, 2020 23:45
@waylan
waylan merged commit 74c0166 into Python-Markdown:master Feb 12, 2020
@jimporter
jimporter deleted the toc-html-special-chars branch April 8, 2020 22:25
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.

2 participants