Skip to content

Fix paragraph breaking condition#130

Open
tanakahisateru wants to merge 1 commit intocebe:masterfrom
tanakahisateru:fix-parahgraph-breaking
Open

Fix paragraph breaking condition#130
tanakahisateru wants to merge 1 commit intocebe:masterfrom
tanakahisateru:fix-parahgraph-breaking

Conversation

@tanakahisateru
Copy link
Contributor

Quote, HR and HTML are independent blocks even if not placed empty lines before them.

For example:

paragraph
> quote

paragraph
- - -

paragraph
<div>html block</div>

I expected to:

<p>paragraph</p>
<blockquote>
<p>quote</p>
</blockquote>
<p>paragraph</p>
<hr />
<p>paragraph</p>
<div>html block</div>

But actual:

<p>paragraph
&gt; quote</p>
<p>paragraph
- - -</p>
<p>paragraph
<div>html block</div></p>

Though even traditional markdown (https://daringfireball.net/projects/markdown/dingus) converts dense list block:

paragraph
- 1
- 2

to

<p>paragraph
- 1
- 2</p>

It is list specific behavior, but other blocks can be independent.

Quote, HR and HTML are independent blocks even if not placed empty lines before them.
@cebe cebe added this to the 1.2 milestone Sep 28, 2016
@cebe cebe self-assigned this Sep 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants