git.iko.soy/typeable/pandoc
on master help sign in
Textile writer: Don't HTML-escape between @'s.
commit38013de8572ee9b6c9b5873d6f9e0bf6876215ed authorJohn MacFarlane <jgm@berkeley.edu> dateSun 23 Jan 2011, 09:12 (16 years ago) parent628a1ef
3 files changed+4−4
src/Text/Pandoc/Readers/Textile.hs+1−1 src/Text/Pandoc/Writers/Textile.hs+1−1 tests/writer.textile+2−2
src/Text/Pandoc/Readers/Textile.hs+1−1
@@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1818
1919{- |
2020 Module : Text.Pandoc.Readers.Textile
21− Copyright : Copyright (C) 2010 Paul Rivier
21+ Copyright : Copyright (C) 2010-2011 Paul Rivier and John MacFarlane
2222 License : GNU GPL, version 2 or above
2323
2424 Maintainer : Paul Rivier <paul*rivier#demotera*com>
src/Text/Pandoc/Writers/Textile.hs+1−1
@@ -378,7 +378,7 @@ inlineToTextile _ Ellipses = return "..."
378378inlineToTextile _ (Code str) =
379379 return $ if '@' `elem` str
380380 then "<tt>" ++ escapeStringForXML str ++ "</tt>"
381− else "@" ++ escapeStringForXML str ++ "@"
381+ else "@" ++ str ++ "@"
382382
383383inlineToTextile _ (Str str) = return $ escapeStringForTextile str
384384
tests/writer.textile+2−2
@@ -450,7 +450,7 @@ So is *_this_* word.
450450
451451So is *_this_* word.
452452
453−This is code: @&gt;@, @$@, @\@, @\$@, @&lt;html&gt;@.
453+This is code: @>@, @$@, @\@, @\$@, @<html>@.
454454
455455-This is _strikeout_.-
456456
@@ -630,7 +630,7 @@ An e-mail address: "nobody@nowhere.net":mailto:nobody@nowhere.net
630630
631631bq. Blockquoted: "http://example.com/":http://example.com/
632632
633−Auto-links should not occur here: @&lt;http://example.com/&gt;@
633+Auto-links should not occur here: @<http://example.com/>@
634634
635635bc. or here: &lt;http://example.com/&gt;
636636