aboutsummaryrefslogtreecommitdiff
path: root/tests/textile-reader.textile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-01-02 22:28:07 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2016-01-02 22:34:06 -0800
commit97c9691696744a6e56a28dea0221e6230b029ce4 (patch)
treed57576fe724bd2e68e511c7373d6e5b2d12193f8 /tests/textile-reader.textile
parent90a2df3f7c423a4e23958daf9fd2143b1a98d746 (diff)
downloadpandoc-97c9691696744a6e56a28dea0221e6230b029ce4.tar.gz
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 <div>inlined</div> as well. as <p>Html blocks can be <div>inlined</div> as well.</p> 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; <p>Html blocks can be</p> <div> <p>inlined</p> </div> <p>as well.</p>
Diffstat (limited to 'tests/textile-reader.textile')
-rw-r--r--tests/textile-reader.textile5
1 files changed, 1 insertions, 4 deletions
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, <strong> raw HTML inlines </strong> are accepted, as well as :
any *Raw HTML Block* with bold
</div>
-Html blocks can be <div>inlined</div> as well.
-
-* this <div> won't produce raw html blocks </div>
-* but this <strong> will produce inline html </strong>
+Html blocks can <div>interrupt paragraphs</div> as well.
Can you prove that 2 < 3 ?