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

Question about blank line handling #394

Open
tspence opened this issue Jul 31, 2024 · 1 comment
Open

Question about blank line handling #394

tspence opened this issue Jul 31, 2024 · 1 comment

Comments

@tspence
Copy link

tspence commented Jul 31, 2024

Question about blank line handling in ReverseMarkdown:

I have a process that converts from Markdown to HTML and back again, depending on various conditions. One user would like to create a fixed number of blank lines in their content, and it seems like the pipeline ends up trimming these blank lines.

Example: The following HTML converts into the following markdown:

<p>This is my first line!</p>
<p></p>
<p></p>
<p>This is the fourth line.</p>

Converts into this markdown: This is my first line!\r\n\r\nThis is the fourth line.

Of course, when you convert this back into HTML later, there's only one blank line. It seems like the markdown should have four \r\n pairs in it, right?

@mysticmind
Copy link
Owner

mysticmind commented Aug 1, 2024 via email

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