diff --git a/src/Text/Pandoc/Writers/Textile.hs b/src/Text/Pandoc/Writers/Textile.hs index 205bb48cc..0ccc71b14 100644 --- a/src/Text/Pandoc/Writers/Textile.hs +++ b/src/Text/Pandoc/Writers/Textile.hs @@ -428,7 +428,7 @@ inlineToTextile _ (Code _ str) = inlineToTextile _ (Str str) = return $ escapeStringForTextile str inlineToTextile _ (Math _ str) = - return $ "" ++ escapeStringForXML str ++ "" + return $ "" ++ escapeStringForXML str ++ "" inlineToTextile opts il@(RawInline f str) | f == Format "html" || f == Format "textile" = return str diff --git a/test/writer.textile b/test/writer.textile index e99f9ab6e..b184506b6 100644 --- a/test/writer.textile +++ b/test/writer.textile @@ -523,13 +523,13 @@ Ellipses...and...and.... h1(#latex). LaTeX * -* 2+2=4 -* x \in y -* \alpha \wedge \omega -* 223 -* p-Tree -* Here's some display math: \frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h} -* Here's one that has a line break in it: \alpha + \omega \times x^2. +* 2+2=4 +* x \in y +* \alpha \wedge \omega +* 223 +* p-Tree +* Here's some display math: \frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h} +* Here's one that has a line break in it: \alpha + \omega \times x^2. These shouldn't be math: