Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about handling '&' in markdown #1898

Open
bo-ku-ra opened this issue Apr 10, 2024 · 1 comment
Open

about handling '&' in markdown #1898

bo-ku-ra opened this issue Apr 10, 2024 · 1 comment
Labels
good first issue Good for newcomers

Comments

@alixander
Copy link
Collaborator

Notes:

<a href="asdf&asdf">b</a> doesn't work because it's raw html which is rendered as-is without escapes (in order for the html to work), but the ampersand gets interpreted as an XML entity in SVG (like &lsqou;).

https://github.com/yuin/goldmark is so extensible i'm sure there's a way to add a parsing extension that replaces & with &amp; or make urls safe when rendering unsafe html. Not high priority to do right now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: No status
Development

No branches or pull requests

2 participants