From 7d0438897b0df6cc861c9fc679ceeb976cb24c1a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 6 Sep 2012 16:27:01 -0700 Subject: LaTeX reader: Support obeylines environment. Closes #604. --- tests/latex-reader.latex | 5 +++++ tests/latex-reader.native | 1 + 2 files changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/latex-reader.latex b/tests/latex-reader.latex index cd424baec..dd7854eb1 100644 --- a/tests/latex-reader.latex +++ b/tests/latex-reader.latex @@ -155,6 +155,11 @@ And: These should not be escaped: \$ \\ \> \[ \{ \end{verbatim} + +\begin{obeylines} +this has \emph{two +lines} +\end{obeylines} \begin{center}\rule{3in}{0.4pt}\end{center} \section{Lists} diff --git a/tests/latex-reader.native b/tests/latex-reader.native index 2ba7a78f2..b7cf39bc3 100644 --- a/tests/latex-reader.native +++ b/tests/latex-reader.native @@ -57,6 +57,7 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docA ,CodeBlock ("",[],[]) "---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}\n\nthis code block is indented by one tab" ,Para [Str "And:"] ,CodeBlock ("",[],[]) " this code block is indented by two tabs\n\nThese should not be escaped: \\$ \\\\ \\> \\[ \\{" +,Para [Str "this",Space,Str "has",Space,Emph [Str "two",LineBreak,Str "lines"]] ,HorizontalRule ,Header 1 [Str "Lists"] ,Header 2 [Str "Unordered"] -- cgit v1.2.3