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

Fix error in lang attribute parsing #76

Open
borgar opened this issue Apr 21, 2021 · 0 comments
Open

Fix error in lang attribute parsing #76

borgar opened this issue Apr 21, 2021 · 0 comments

Comments

@borgar
Copy link
Owner

borgar commented Apr 21, 2021

The textile %["red":https://example.com].% is incorrectly parsed.

The resulting HTML is:

<span lang="&quot;red&quot;:https://example.com">.</span><

But should be:

<span><a href="https://example.com">red</a>.</span>

Likely it is best to restrict what input is allowed in a lang attribute.

borgar added a commit that referenced this issue Apr 25, 2021
Lang value now supports only chars legal in BCP-47 and underscore.

Fixes #76
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

No branches or pull requests

1 participant