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
Hello! I believe I've found a bug. I have a markdown file untitled.md:
item that doesn't need wrapping
a-long-line-that-won't-be-wrapped-because-there-is-no-character-it-can-break-on
When running this through the cli with the --to commonmark and --width 72 options:
comrak --to commonmark --width 72 untitled.md
It outputs the following:
item that doesn't need
wrapping
a-long-line-that-won't-be-wrapped-because-there-is-no-character-it-can-break-on
I think the list item is not supposed to wrap there. If the last line is short enough to not need wrapping, this doesn't occur. If the last line is wrappable (e.g. remove all the - characters), this also doesn't occur.
The text was updated successfully, but these errors were encountered:
Thanks for this report — verified. Will look into a fix in a little bit.
Also, if you felt like giving it a go yourself and had the time, please feel free! Should be a nice easy one to just compare the wrapping behaviour of comrak's CommonMark formatter and cmark-gfm's.
edwardloveall
changed the title
List items wrap incorrectly when followed by a non-wrappable line
Lines wrap incorrectly when followed by a non-wrappable line
Jul 6, 2022
Hello! I believe I've found a bug. I have a markdown file
untitled.md
:When running this through the cli with the
--to commonmark
and--width 72
options:It outputs the following:
I think the list item is not supposed to wrap there. If the last line is short enough to not need wrapping, this doesn't occur. If the last line is wrappable (e.g. remove all the
-
characters), this also doesn't occur.The text was updated successfully, but these errors were encountered: