git.iko.soy/typeable/pandoc
on master help sign in
Textile writer: escape `+` and `-` as entities.
7df4d86John MacFarlane
src/Text/Pandoc/Writers/Textile.hs+2
@@ -85,6 +85,8 @@ escapeCharForTextile x = case x of
85 '*' -> "*"
85 '*' -> "*"
86 '_' -> "_"
86 '_' -> "_"
87 '@' -> "@"
87 '@' -> "@"
88+ '+' -> "+"
89+ '-' -> "-"
88 '|' -> "|"
90 '|' -> "|"
89 '\x2014' -> " -- "
91 '\x2014' -> " -- "
90 '\x2013' -> " - "
92 '\x2013' -> " - "
tests/writer.textile+8−8
@@ -30,7 +30,7 @@ h1(#paragraphs). Paragraphs
30
30
31Here's a regular paragraph.
31Here's a regular paragraph.
32
32
33−In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Because a hard-wrapped line in the middle of a paragraph looked like a list item.
33+In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Because a hard-wrapped line in the middle of a paragraph looked like a list item.
34
34
35Here's one with a bullet. * criminey.
35Here's one with a bullet. * criminey.
36
36
@@ -41,7 +41,7 @@ here.
41
41
42h1(#block-quotes). Block Quotes
42h1(#block-quotes). Block Quotes
43
43
44−E-mail style:
44+E-mail style:
45
45
46bq. This is a block quote. It is pretty short.
46bq. This is a block quote. It is pretty short.
47
47
@@ -527,7 +527,7 @@ h1(#latex). LaTeX
527* <span class="math">x \in y</math>
527* <span class="math">x \in y</math>
528* <span class="math">\alpha \wedge \omega</math>
528* <span class="math">\alpha \wedge \omega</math>
529* <span class="math">223</math>
529* <span class="math">223</math>
530−* <span class="math">p</math>-Tree
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>
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>.
532* Here's one that has a line break in it: <span class="math">\alpha + \omega \times x^2</math>.
533
533
@@ -583,7 +583,7 @@ Left paren: (
583
583
584Right paren: )
584Right paren: )
585
585
586−Greater-than: &gt;
586+Greater&#45;than: &gt;
587
587
588Hash: #
588Hash: #
589
589
@@ -591,9 +591,9 @@ Period: .
591
591
592Bang: !
592Bang: !
593
593
594−Plus: +
594+Plus: &#43;
595
595
596−Minus: -
596+Minus: &#45;
597
597
598<hr />
598<hr />
599
599
@@ -664,13 +664,13 @@ With an ampersand: "$":http://example.com/?foo=1&bar=2
664* "$":http://example.com/
664* "$":http://example.com/
665* It should.
665* It should.
666
666
667−An e-mail address: "nobody&#64;nowhere.net":mailto:nobody@nowhere.net
667+An e&#45;mail address: "nobody&#64;nowhere.net":mailto:nobody@nowhere.net
668
668
669bq. Blockquoted: "$":http://example.com/
669bq. Blockquoted: "$":http://example.com/
670
670
671
671
672
672
673−Auto-links should not occur here: @<http://example.com/>@
673+Auto&#45;links should not occur here: @<http://example.com/>@
674
674
675bc. or here: <http://example.com/>
675bc. or here: <http://example.com/>
676
676