aboutsummaryrefslogtreecommitdiffstats
path: root/tests/misc/blockquote-hr.html
diff options
context:
space:
mode:
authorIsaac Muse <faceless.shop@gmail.com>2017-01-23 09:10:20 -0700
committerWaylan Limberg <waylan.limberg@icloud.com>2017-01-23 11:10:20 -0500
commit594b25d53798c30735da5a9be19c06cc94052a16 (patch)
tree7ceae815a9b1d070e1466e634c4fb4cd2a575cce /tests/misc/blockquote-hr.html
parent4a3d1a6bc0cb49d8a472380614b53fdd300e7512 (diff)
downloadmarkdown-594b25d53798c30735da5a9be19c06cc94052a16.tar.gz
markdown-594b25d53798c30735da5a9be19c06cc94052a16.tar.bz2
markdown-594b25d53798c30735da5a9be19c06cc94052a16.zip
Fix hr recursion issue (#535)
HRProcessor tried to access a member variable after recursively calling itself. In certain situations HRProcessor will try to access its member variable containing its match, but it will not be the same match that call in the stack expected. This is easily fixed by storing the match locally *before* doing any recursive work.
Diffstat (limited to 'tests/misc/blockquote-hr.html')
-rw-r--r--tests/misc/blockquote-hr.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/misc/blockquote-hr.html b/tests/misc/blockquote-hr.html
index 61c1a3c..e13784f 100644
--- a/tests/misc/blockquote-hr.html
+++ b/tests/misc/blockquote-hr.html
@@ -13,4 +13,13 @@ With multiple lines.
Even a lazy line.</p>
<hr />
<p>The last line.</p>
+</blockquote>
+<p>foo</p>
+<blockquote>
+<p>bar</p>
+<hr />
+</blockquote>
+<hr />
+<blockquote>
+<p>baz</p>
</blockquote> \ No newline at end of file