Closed karelbilek closed 1 year ago
sorry, it is WithHardWraps
Or we could actually automatically tell what max char length should it be (:
Taking max width and breaking on that is a different thing from preserving current lines.
Both would be fine :P
I'm now kind of busy, PR welcome :D
Looks like this is done with #36? Should this issue be closed?
Done in #36
Currently we put together newlines. That is
will be formatted as
This is basically correct.
https://spec.commonmark.org/0.29/#soft-line-breaks
However, as the spec says also,
I have now saw an issue in one project where those soft lines were actually interpreted as hard lines, and this option was "on by default", so these soft lines were actually important. (Related to https://github.com/nhn/tui.editor/issues/1347 )
We can see goldmark for inspiration; goldmark has option WithHardLines for renderer; we can copy that directly almost.