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

Fix paragraph breaking condition #130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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