trentm / python-markdown2

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

Fix relative links not working in safe mode (issue #254) #513

Closed Crozzers closed 1 year ago

Crozzers commented 1 year ago

This PR fixes #254 by cherry-picking commit pknowles@76c663d and adding a test case for this bug.

I removed the full MIT license text from the original commit, keeping the copyright attributions and a link to the license instead. For such a small snippet of code, I think this approach is sufficient? In-lining is messy and I'm not sure where else the license would be stored.

Happy to hear feedback on this

nicholasserra commented 1 year ago

LGTM I think that comment block is fine. Thanks!

Prob cut a release next week