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

How to keep multiple blank lines / paragraphs? #386

Open
stefan-niedermann opened this issue Jan 17, 2022 · 1 comment
Open

How to keep multiple blank lines / paragraphs? #386

stefan-niedermann opened this issue Jan 17, 2022 · 1 comment
Labels

Comments

@stefan-niedermann
Copy link

  • 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
@noties
Copy link
Owner

noties commented Jan 28, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants