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

Wrong wrapping of links-at-bottom in Markdown #63

Closed
hoenic07 opened this issue Jan 5, 2018 · 4 comments
Closed

Wrong wrapping of links-at-bottom in Markdown #63

hoenic07 opened this issue Jan 5, 2018 · 4 comments

Comments

@hoenic07
Copy link

hoenic07 commented Jan 5, 2018

In Markdown links could be added to the bottom of the page, so that they don't clutter the actual document. This looks like this:

[Link1]: http://www.link1.com/lorem_ipsum_lorem_ipsum_lorem_ipsum
[Link2]: http://www.link2.com/lorem_ipsum_lorem_ipsum_lorem_ipsum

Unfortunately this will be rewrapped to:

[Link1]: http://www.link1.com/lorem_ipsum_lorem_ipsum_lorem_ipsum [Link2]:
http://www.link2.com/lorem_ipsum_lorem_ipsum_lorem_ipsum

In my opinion the expected behavior is that one link should be in one line (like in the first code snipped)

@stkb
Copy link
Owner

stkb commented Jan 10, 2018

I'll look in to supporting this. In the mean time you should be able to use the workaround of adding 2 spaces to the end of each line; this will preserve the line break.

@alphang
Copy link

alphang commented Jul 3, 2018

In the mean time you should be able to use the workaround of adding 2 spaces to the end of each line; this will preserve the line break.

Hi - this workaround is super useful. Is it documented somewhere?

I was trying to hard wrap a list without getting rid of the line breaks, and it took me a long time to find this post.

@stkb
Copy link
Owner

stkb commented Nov 29, 2021

@stkb stkb added the in pre-release version Is in pre-release version but not in stable yet label Nov 29, 2021
stkb added a commit that referenced this issue Jan 14, 2022
- New architecture (still WIP) with performance increase.
- Markdown: new parser that fixes many small bugs (inc #288), as well as
  supporting:
  - Front matter header (#277, #294)
  - Link reference definitions (#63, #93)
  - Footnotes (#188)
- ReStructuredText support (standalone & for Python, almost complete)
  (#88).
- Julia: support `#= ... =#` block comments (#302)
- Visual Studio: Wrap to rulers generated from .editorconfig by the
  Editor Guidelines extension (thereby indirectly supporting
  .editorconfig) (#300).
@stkb
Copy link
Owner

stkb commented Jan 14, 2022

Fixed in v1.16.0

@stkb stkb closed this as completed Jan 14, 2022
@stkb stkb removed the in pre-release version Is in pre-release version but not in stable yet label Jan 14, 2022
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

No branches or pull requests

3 participants