Skip to content

Conversation

@hebertialmeida
Copy link

Problem

These two inputs become links:

[link](/u(ri )
[link](/u(ri
)

This issue was initially reported on commonmark/commonmark.js#177 and fixed while ago on commonmark@58dd044.

I believe this still valid as it is still live on master branch https://github.com/commonmark/cmark/blob/master/src/inlines.c#L480-L482, and the spec says:

...if you have unbalanced parentheses, you need to escape or use the <...> form

For some reason, it seems like it never made it to swift-cmark.

@hebertialmeida hebertialmeida changed the title [FIX]: Unbalanced parentheses shouldn’t be parsed as links. fix: Unbalanced parentheses shouldn’t be parsed as links. Oct 30, 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.

1 participant