From 97c9691696744a6e56a28dea0221e6230b029ce4 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 2 Jan 2016 22:28:07 -0800 Subject: Textile reader: don't allow block HTML tags in inline contexts. The reader previously did allow this, following redcloth, which happily parses Html blocks can be
inlined
as well. as

Html blocks can be

inlined
as well.

This is invalid HTML, and this kind of thing can lead to parsing problems (stack overflows) as well. So this commit undoes this behavior. The above sample now produces;

Html blocks can be

inlined

as well.

--- tests/textile-reader.textile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests/textile-reader.textile') diff --git a/tests/textile-reader.textile b/tests/textile-reader.textile index dab73b39f..d5d7378b0 100644 --- a/tests/textile-reader.textile +++ b/tests/textile-reader.textile @@ -228,10 +228,7 @@ However, raw HTML inlines are accepted, as well as : any *Raw HTML Block* with bold -Html blocks can be
inlined
as well. - -* this
won't produce raw html blocks
-* but this will produce inline html +Html blocks can
interrupt paragraphs
as well. Can you prove that 2 < 3 ? -- cgit v1.2.3