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

Blockquotes: Don't merge sequential quotes into a single blockquote #356

Merged
merged 2 commits into from Jun 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/markdown2.py
Expand Up @@ -2027,7 +2027,6 @@ def _do_smart_punctuation(self, text):
^[ \t]*>%s[ \t]? # '>' at the start of a line
.+\n # rest of the first line
(.+\n)* # subsequent consecutive lines
\n* # blanks
)+
)
'''
Expand Down
5 changes: 5 additions & 0 deletions test/tm-cases/blockquote_containing_empty_lines.html
@@ -0,0 +1,5 @@
<blockquote>
<p>no way</p>

<p>way</p>
</blockquote>
4 changes: 4 additions & 0 deletions test/tm-cases/blockquote_containing_empty_lines.text
@@ -0,0 +1,4 @@
> no way
>
>
> way
7 changes: 7 additions & 0 deletions test/tm-cases/blockquote_two_in_a_row.html
@@ -0,0 +1,7 @@
<blockquote>
<p>no way</p>
</blockquote>

<blockquote>
<p>way</p>
</blockquote>
3 changes: 3 additions & 0 deletions test/tm-cases/blockquote_two_in_a_row.text
@@ -0,0 +1,3 @@
> no way

> way