summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorpaul.rivier <paul.r.ml@gmail.com>2012-04-17 13:14:05 +0200
committerpaul.rivier <paul.r.ml@gmail.com>2012-04-17 13:14:05 +0200
commit411d54ce98f40b5196706804da6167079ed5d824 (patch)
treebb21995ea74e7029b0d8664ca5b0275432407545 /tests
parent5a244bb7b330de981cd1a59330b8e34e159a64e8 (diff)
Textile reader quick clean-up and added support for LaTeX blocks and inlines.
Diffstat (limited to 'tests')
-rw-r--r--tests/textile-reader.native4
-rw-r--r--tests/textile-reader.textile11
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/textile-reader.native b/tests/textile-reader.native
index 8e149c33d..a40e07ae9 100644
--- a/tests/textile-reader.native
+++ b/tests/textile-reader.native
@@ -139,6 +139,10 @@ Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []})
[[Plain [Str "this",Space,Str "<",Str "div",Str ">",Space,Str "won",Str "\8217",Str "t",Space,Str "produce",Space,Str "raw",Space,Str "html",Space,Str "blocks",Space,Str "<",Str "/div",Str ">"]]
,[Plain [Str "but",Space,Str "this",Space,RawInline "html" "<strong>",Space,Str "will",Space,Str "produce",Space,Str "inline",Space,Str "html",Space,RawInline "html" "</strong>"]]]
,Para [Str "Can",Space,Str "you",Space,Str "prove",Space,Str "that",Space,Str "2",Space,Str "<",Space,Str "3",Space,Str "?"]
+,Header 1 [Str "Raw",Space,Str "LaTeX"]
+,Para [Str "This",Space,Str "Textile",Space,Str "reader",Space,Str "also",Space,Str "accepts",Space,Str "raw",Space,Str "LaTeX",Space,Str "for",Space,Str "blocks",Space,Str ":"]
+,RawBlock "latex" "\\begin{itemize}\n \\item one\n \\item two\n\\end{itemize}"
+,Para [Str "and",Space,Str "for",Space,RawInline "latex" "\\emph{inlines}",Str "."]
,Header 1 [Str "Acronyms",Space,Str "and",Space,Str "marks"]
,Para [Str "PBS",Space,Str "(",Str "Public",Space,Str "Broadcasting",Space,Str "System",Str ")"]
,Para [Str "Hi",Str "\8482"]
diff --git a/tests/textile-reader.textile b/tests/textile-reader.textile
index 85dcf142c..cf165e1bc 100644
--- a/tests/textile-reader.textile
+++ b/tests/textile-reader.textile
@@ -198,6 +198,17 @@ Html blocks can be <div>inlined</div> as well.
Can you prove that 2 < 3 ?
+h1. Raw LaTeX
+
+This Textile reader also accepts raw LaTeX for blocks :
+
+\begin{itemize}
+ \item one
+ \item two
+\end{itemize}
+
+and for \emph{inlines}.
+
h1. Acronyms and marks
PBS(Public Broadcasting System)