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

Multiple newlines are converted to single newline #66

Open
justinyjsong opened this issue Jul 24, 2024 · 1 comment
Open

Multiple newlines are converted to single newline #66

justinyjsong opened this issue Jul 24, 2024 · 1 comment

Comments

@justinyjsong
Copy link

Adding multiple
together is treated as a single newline.

example: <p>a</p><br><br><p>b</p><br>

is converted to below

a

b

Any newline at the end is trimmed as well.

@nonara
Copy link
Collaborator

nonara commented Jul 25, 2024

Thanks for the report! That's behaviour is intentional.

Many pages with complex layouts end up having a lot of whitespace, and it makes the markdown very difficult to read at a glance and wastes size.

We tool the approach of cleaning it up. However, there is a config setting for maximum newlines that you can adjust to allow more.

Try setting maxConsecutiveNewlines

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

2 participants