Skip to content

Add option emptyLines#396

Open
zentby wants to merge 2 commits into
jonschlinkert:masterfrom
zentby:empty_lines
Open

Add option emptyLines#396
zentby wants to merge 2 commits into
jonschlinkert:masterfrom
zentby:empty_lines

Conversation

@zentby

@zentby zentby commented Sep 2, 2020

Copy link
Copy Markdown

Solves #242

It introduces a new option emptyLines for default and full version.

When it is enabled, it will preserve the empty lines and convert them into <p></p>.

e.g.
Markdown

line1


line2

Before:

<p>line1</p>
<p>line2</p>

After:

<p>line1</p>
<p></p>
<p>line2</p>

Note there will be an empty line not being preserved, to be compatible for existing line terminator.

@coveralls

coveralls commented Sep 2, 2020

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.02%) to 98.569% when pulling fcc4a2f on zentby:empty_lines into 58b6945 on jonschlinkert:master.

@Dagur

Dagur commented Sep 14, 2023

Copy link
Copy Markdown

A copule of comments:

  • Doesn't work if you use "commonmark" instead of "full"
  • README needs to be updated

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

Successfully merging this pull request may close these issues.

3 participants