summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2013-06-11 10:16:54 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2013-06-11 10:16:54 -0700
commit50ba5a801a2593598f1484c7ce4aa941f00ed0b0 (patch)
tree1d9505a088c0c47eb53304206c27935266aebafa /tests
parent96f25f924a6de58bc313d78697f0f0f65307d891 (diff)
Textile reader: Correctly handle entities.
Diffstat (limited to 'tests')
-rw-r--r--tests/textile-reader.native2
-rw-r--r--tests/textile-reader.textile5
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/textile-reader.native b/tests/textile-reader.native
index 71d9774b3..adb9c01f3 100644
--- a/tests/textile-reader.native
+++ b/tests/textile-reader.native
@@ -134,6 +134,8 @@ Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []})
,[[Plain [Str "joan"]]
,[Plain [Str "24"]]
,[Plain [Str "f"]]]]
+,Header 1 ("",[],[]) [Str "Entities"]
+,Para [Str "*",LineBreak,Str "&"]
,Header 1 ("",[],[]) [Str "Raw",Space,Str "HTML"]
,Para [Str "However",Str ",",Space,RawInline "html" "<strong>",Space,Str "raw",Space,Str "HTML",Space,Str "inlines",Space,RawInline "html" "</strong>",Space,Str "are",Space,Str "accepted",Str ",",Space,Str "as",Space,Str "well",Space,Str "as",Space,Str ":"]
,RawBlock "html" "<div class=\"foobar\">"
diff --git a/tests/textile-reader.textile b/tests/textile-reader.textile
index 5d5a6c593..e31052b6a 100644
--- a/tests/textile-reader.textile
+++ b/tests/textile-reader.textile
@@ -203,6 +203,11 @@ table{foo:bar}.
| name | age | sex |
| joan | 24 | f |
+h1. Entities
+
+&#42;
+&amp;
+
h1. Raw HTML
However, <strong> raw HTML inlines </strong> are accepted, as well as :