git.iko.soy/typeable/pandoc
on master help sign in
Textile writer: fix closing tag for math output

Opening and closing tag for math output match now.

commit7db3d9ab04cfa9b2d4c4f11112acfde15577958f authorAlbert Krewinkel <albert@zeitkraut.de> dateSat 1 Jun 2019, 10:10 (7 years ago) parent39a3a02
2 files changed+8−8
src/Text/Pandoc/Writers/Textile.hs+1−1 test/writer.textile+7−7
src/Text/Pandoc/Writers/Textile.hs+1−1
@@ -428,7 +428,7 @@ inlineToTextile _ (Code _ str) =
428428inlineToTextile _ (Str str) = return $ escapeStringForTextile str
429429
430430inlineToTextile _ (Math _ str) =
431− return $ "<span class=\"math\">" ++ escapeStringForXML str ++ "</math>"
431+ return $ "<span class=\"math\">" ++ escapeStringForXML str ++ "</span>"
432432
433433inlineToTextile opts il@(RawInline f str)
434434 | f == Format "html" || f == Format "textile" = return str
test/writer.textile+7−7
@@ -523,13 +523,13 @@ Ellipses...and...and....
523523h1(#latex). LaTeX
524524
525525*
526−* <span class="math">2+2=4</math>
527−* <span class="math">x \in y</math>
528−* <span class="math">\alpha \wedge \omega</math>
529−* <span class="math">223</math>
530−* <span class="math">p</math>&#45;Tree
531−* Here's some display math: <span class="math">\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}</math>
532−* Here's one that has a line break in it: <span class="math">\alpha + \omega \times x^2</math>.
526+* <span class="math">2+2=4</span>
527+* <span class="math">x \in y</span>
528+* <span class="math">\alpha \wedge \omega</span>
529+* <span class="math">223</span>
530+* <span class="math">p</span>&#45;Tree
531+* Here's some display math: <span class="math">\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}</span>
532+* Here's one that has a line break in it: <span class="math">\alpha + \omega \times x^2</span>.
533533
534534These shouldn't be math:
535535