Skip to content

Question about blank line handling #394

Open
@tspence

Description

@tspence

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions