Skip to content

Commit

Permalink
Merge pull request #356 from codebykat/fix/two-blockquotes-in-a-row-g…
Browse files Browse the repository at this point in the history
…et-merged

Blockquotes: Don't merge sequential quotes into a single blockquote
  • Loading branch information
nicholasserra committed Jun 16, 2020
2 parents 8c0ddb3 + 7d3c6d6 commit b19ae37
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
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

0 comments on commit b19ae37

Please sign in to comment.