From 5d913699758a5815bc114a9e8c08db61eb206a5d Mon Sep 17 00:00:00 2001 From: facelessuser Date: Wed, 19 Nov 2014 18:21:40 -0700 Subject: Issue #368: Fix Markdown in raw HTML stops working Originally there was an infinite loop issue that was patched in issue #308. Unfortunately, it was fixed all the way. This fix patches the infinite loop fix to only add an offset to the `right_listindex` when it is in a infinite loop scenario. --- tests/extensions/extra/raw-html.html | 13 ++++++++++--- tests/extensions/extra/raw-html.txt | 14 ++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/extensions/extra/raw-html.html b/tests/extensions/extra/raw-html.html index f8874c3..7acb2ee 100644 --- a/tests/extensions/extra/raw-html.html +++ b/tests/extensions/extra/raw-html.html @@ -27,11 +27,18 @@ Note: Subelements are not required to have tail text. Raw html blocks may also be nested. - -

This text is after the markdown in html.

1 2

-
\ No newline at end of file + +
+

Markdown is active here.

+
+Raw html blocks may also be nested. +
+ +

Markdown is still active here.

+
+

Markdown is active again here.

\ No newline at end of file diff --git a/tests/extensions/extra/raw-html.txt b/tests/extensions/extra/raw-html.txt index 0a82ccf..72f530b 100644 --- a/tests/extensions/extra/raw-html.txt +++ b/tests/extensions/extra/raw-html.txt @@ -51,3 +51,17 @@ This text is after the markdown in html. 2 + +
+ +Markdown is *active* here. + +
+Raw html blocks may also be nested. +
+ +Markdown is *still* active here. + +
+ +Markdown is *active again* here. -- cgit v1.2.3