Skip to content

only escape closing square brackets inside <a> tags#1

Merged
jsm28 merged 1 commit intojsm28:escape-right-square-bracketfrom
chrispy-snps:chrispy/parent-sensitive-escaping
Feb 18, 2025
Merged

only escape closing square brackets inside <a> tags#1
jsm28 merged 1 commit intojsm28:escape-right-square-bracketfrom
chrispy-snps:chrispy/parent-sensitive-escaping

Conversation

@chrispy-snps
Copy link
Copy Markdown

Escapes closing square brackets only inside <a> tags.

This is similar to how many HTML serializers escape opening < characters but not closing > characters. In theory, as long as all opening brackets are escaped, a stray closing bracket outside a link should not be misinterpreted.

@jsm28 - would appreciate your thoughts on this!

@jsm28 jsm28 merged commit 485de1f into jsm28:escape-right-square-bracket Feb 18, 2025
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