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

consecutive blockquotes shouldn't be merged #332

Closed
de-code opened this issue Sep 4, 2019 · 1 comment
Closed

consecutive blockquotes shouldn't be merged #332

de-code opened this issue Sep 4, 2019 · 1 comment

Comments

@de-code
Copy link

de-code commented Sep 4, 2019

It seems consecutive quotes (separated by two line feeds) are merged if there isn't any other text in between.

e.g.:

from markdown2 import markdown
print(markdown('> quote 1\n\n> quote 2'))

outputs:

<blockquote>
  <p>quote 1</p>
  
  <p>quote 2</p>
</blockquote>

expected something like:

<blockquote>
  <p>quote 1</p>
</blockquote>

<blockquote>
  <p>quote 2</p>
</blockquote>

Adding non-quoted text in-between results in separate blockquotes as expected:

print(markdown('> quote 1\n\nno quote\n> quote 2'))
<blockquote>
  <p>quote 1</p>
</blockquote>

<p>no quote</p>

<blockquote>
  <p>quote 2</p>
</blockquote>

Replacing no quote in the above code with a whitespace removes that separation again.

The same seems to be true for python-Markdown.

In GitHub renders markdown as expected:

quote 1

quote 2

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