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 prevent adding trailling new lines for inline elements when using NO_P_TAGS_USE_BR #606

Open
anqianqianqi opened this issue Jan 17, 2024 · 0 comments

Comments

@anqianqianqi
Copy link

anqianqianqi commented Jan 17, 2024

When I render with HtmlRenderer.NO_P_TAGS_USE_BR set to true,
there will be 2 trailing new lines added to the element.
Examples:
input: **bold**
output: <strong>bold</strong><br /><br />\n

However it does not happen to block level elements.
Examples:
input: # Headline
output: <h1>Headline</h1>\n
How could I remove the trailing new lines for inline elements to have it behave consistently as the block level elements?

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

1 participant