You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(md013): stop exempting a complete link followed by a parenthesized aside
The spaces-in-destination fallback matched any line that starts with a link or
image and ends with one balanced parenthesized group, so a common list entry
such as `- [ripgrep](https://github.com/BurntSushi/ripgrep) (a line-oriented
search tool)` became exempt from the line-length check and `rumdl fmt` stopped
wrapping it.
Two conditions separate a destination from prose. A destination holding a space
does not parse as an inline link at all: the link text degrades to an empty-url
shortcut, which is the state the fallback exists for, while a complete link
carries its own url. And CommonMark forbids whitespace between `]` and `(`, so
a group separated by a space cannot be a destination.
Follow-up to #781.
0 commit comments