trentm / python-markdown2

markdown2: A fast and complete implementation of Markdown in Python
Other
2.66k stars 433 forks source link

Fix angles being escaped in style blocks (issue #523) #524

Closed Crozzers closed 1 year ago

Crozzers commented 1 year ago

This PR fixes #523 by adding |style to the _block_tags_a regex. This allows the contents of <style> tags to be hashed at the start of conversion, before any character escaping takes place, preserving the contents for the final output.

nicholasserra commented 1 year ago

Thank you!