aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extensions/extra/raw-html.txt
diff options
context:
space:
mode:
authorfacelessuser <faceless.shop@gmail.com>2015-09-04 19:45:44 -0600
committerfacelessuser <faceless.shop@gmail.com>2015-09-04 19:45:44 -0600
commit6cd3765a1d60b6557b9f083b4218fe00287a9329 (patch)
treee68313e9c551b1998dfc39b7df766f310c58abd5 /tests/extensions/extra/raw-html.txt
parentd442f575a35fdf5f7b78df7355c32c4728ff98be (diff)
downloadmarkdown-6cd3765a1d60b6557b9f083b4218fe00287a9329.tar.gz
markdown-6cd3765a1d60b6557b9f083b4218fe00287a9329.tar.bz2
markdown-6cd3765a1d60b6557b9f083b4218fe00287a9329.zip
Fix infinite loop #430
This should fix the remaining corner cases that can cause infinite loops. Previous iterations did not account for scenarios where the “end” index was less than the “start” index. If the “end” index is ever less than or equal to the “start” index, the “end” will be adjusted to to be “start” + 1 allow the full range to be extracted and replaced.
Diffstat (limited to 'tests/extensions/extra/raw-html.txt')
-rw-r--r--tests/extensions/extra/raw-html.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/extensions/extra/raw-html.txt b/tests/extensions/extra/raw-html.txt
index 72f530b..da24af0 100644
--- a/tests/extensions/extra/raw-html.txt
+++ b/tests/extensions/extra/raw-html.txt
@@ -65,3 +65,9 @@ Markdown is *still* active here.
</div>
Markdown is *active again* here.
+
+<div markdown=1>
+foo bar
+
+<em>bar</em>
+</div>