Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reflow breaks markdown links #12003

Open
jkaye2012 opened this issue Nov 5, 2024 · 0 comments
Open

Reflow breaks markdown links #12003

jkaye2012 opened this issue Nov 5, 2024 · 0 comments
Labels
C-enhancement Category: Improvements

Comments

@jkaye2012
Copy link

Hey there,

I found some surprising behavior today. I feel like this must be known already, but I wasn't able to find an issue for it, so apologies in advance if this is a duplicate.

The reflow command seems to not respect Markdown links; specifically, it seems like a ]( pair isn't recognized as a token that shouldn't be broken when reflowing. The problem is triggered specifically when the link text is within the line length, but the link
itself is beyond the length. For example:

This is a line that isn't that long [with a link in it](https://google.com).

If the line length is set to 55, this will be reflowed to:

This is a line that isn't that long [with a link in it]
(https://google.com).

which breaks the link. Is this intended?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

1 participant