Markwon icon indicating copy to clipboard operation
Markwon copied to clipboard

How to keep multiple blank lines / paragraphs?

Open stefan-niedermann opened this issue 3 years ago • 1 comments

  • Markwon version: 4.6.2

Given the input contains multiple blank lines, the rendered output will truncate them to one blank line (see screenshots below). I haven't found a configuration option in the documentation to keep those blank space so far, therefore I am curious whether there is an option (or plugin) that I just missed or whether this hasn't been a topic at all yet?

input output
input output

stefan-niedermann avatar Jan 17 '22 10:01 stefan-niedermann

Hello @stefan-niedermann ,

this behavior comes directly from the commonmark spec (via commonmark-java here). There is no option or a configuration step to control it right now. But you can take a look at the NewLineInlineProcessor from the inline-parser if you wish to have more control of the parser

noties avatar Jan 28 '22 21:01 noties