Skip to content

Forbid square brackets in reference link IDs (#680)#681

Merged
nicholasserra merged 1 commit intotrentm:masterfrom
Crozzers:fix-issue680
Mar 2, 2026
Merged

Forbid square brackets in reference link IDs (#680)#681
nicholasserra merged 1 commit intotrentm:masterfrom
Crozzers:fix-issue680

Conversation

@Crozzers
Copy link
Contributor

@Crozzers Crozzers commented Mar 2, 2026

This PR fixes #680 by forbidding square brackets in reference link IDs.

GFM spec describes the link labels as at least one whitespace character, not including unescaped square brackets. To make implementation easier, I've just forbidden square brackets outright. Our link definitions parsing doesn't support them anyway

@nicholasserra
Copy link
Collaborator

LGTM thanks!

Gonna do a release after this. I'll update the changelog with this

@nicholasserra nicholasserra merged commit c84f913 into trentm:master Mar 2, 2026
15 checks passed
@Crozzers
Copy link
Contributor Author

Crozzers commented Mar 2, 2026

Ah sorry, was just trying to update the changelog from my end. My NAS rebooted in the middle of git push and messed up my local git folder

@nicholasserra
Copy link
Collaborator

No worries it was perfect timing, I was about to do a release when this PR popped up :D

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.

Multiple links per line result in only last link being rendered

2 participants