git.iko.soy/typeable/pandoc
on master help sign in
Changed escapes in markdown writer.

- >, not <, is escapable in standard markdown.! - also # is now escaped - Partiall resolves Issue #96. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1600 788f1e2b-df1e-0410-8736-df70ead52e1b

commitf9ec6797bd50d3c2d63c3b35ec17d8a49ece94f0 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSat 18 Jul 2009, 19:15 (17 years ago) parentd84c678
2 files changed+6−6
src/Text/Pandoc/Writers/Markdown.hs+1−1 tests/writer.markdown+5−5
src/Text/Pandoc/Writers/Markdown.hs+1−1
@@ -102,7 +102,7 @@ noteToMarkdown opts num blocks = do
102102-- | Escape special characters for Markdown.
103103escapeString :: String -> String
104104escapeString = escapeStringUsing markdownEscapes
105− where markdownEscapes = backslashEscapes "`<\\*_^~"
105+ where markdownEscapes = backslashEscapes "\\`*_>#~^"
106106
107107-- | Convert bibliographic information into Markdown header.
108108metaToMarkdown :: WriterOptions -> Meta -> State WriterState Doc
tests/writer.markdown+5−5
@@ -72,7 +72,7 @@ E-mail style:
7272>
7373> > nested
7474
75−This should not be a block quote: 2 > 1.
75+This should not be a block quote: 2 \> 1.
7676
7777And a following paragraph.
7878
@@ -537,9 +537,9 @@ AT&T is another way to write it.
537537
538538This & that.
539539
540−4 \< 5.
540+4 < 5.
541541
542−6 > 5.
542+6 \> 5.
543543
544544Backslash: \\
545545
@@ -561,9 +561,9 @@ Left paren: (
561561
562562Right paren: )
563563
564−Greater-than: >
564+Greater-than: \>
565565
566−Hash: #
566+Hash: \#
567567
568568Period: .
569569