Skip to content

fix: reference-style links are joined by gq#228

Open
Biebar wants to merge 1 commit intotpope:masterfrom
Biebar:master
Open

fix: reference-style links are joined by gq#228
Biebar wants to merge 1 commit intotpope:masterfrom
Biebar:master

Conversation

@Biebar
Copy link
Copy Markdown

@Biebar Biebar commented Apr 1, 2026

Reference style links aren't considered in formatlistpat. This commit adds them by generalizing footnotes.

To reproduce, edit the following markdown file and use gqG :

[A][a] and [B][b] are short links.

[a]: <short link>
[b]: <short link>

You should obtain the following incorrectly formatted markdown :

[A][a] and [B][b] are short links.

[a]: <short.link/1> [b]: <short.link/2>

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