git.iko.soy/typeable/pandoc
on master help sign in
Print unicode \160 literally in markdown writer, rather than as  .

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1299 788f1e2b-df1e-0410-8736-df70ead52e1b

commita85dfb83bb9e3394149962a0f7600220c5a83c25 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateFri 11 Jul 2008, 02:15 (18 years ago) parent824bb2d
2 files changed+4−4
Text/Pandoc/Writers/Markdown.hs+1−1 tests/writer.markdown+3−3
Text/Pandoc/Writers/Markdown.hs+1−1
@@ -100,7 +100,7 @@ noteToMarkdown opts num blocks = do
100100-- | Escape special characters for Markdown.
101101escapeString :: String -> String
102102escapeString = escapeStringUsing markdownEscapes
103− where markdownEscapes = ('\160', "&nbsp;"):(backslashEscapes "`<\\*_^~")
103+ where markdownEscapes = backslashEscapes "`<\\*_^~"
104104
105105-- | Convert bibliographic information into Markdown header.
106106metaToMarkdown :: WriterOptions -> Meta -> State WriterState Doc
tests/writer.markdown+3−3
@@ -269,7 +269,7 @@ Autonumbering:
269269
270270Should not be a list item:
271271
272−M.A.&nbsp;2007
272+M.A. 2007
273273
274274B. Williams
275275
@@ -457,9 +457,9 @@ This is code: `>`, `$`, `\`, `\$`, `<html>`.
457457
458458~~This is *strikeout*.~~
459459
460−Superscripts: a^bc^d a^*hello*^ a^hello&nbsp;there^.
460+Superscripts: a^bc^d a^*hello*^ a^hello there^.
461461
462−Subscripts: H~2~O, H~23~O, H~many&nbsp;of&nbsp;them~O.
462+Subscripts: H~2~O, H~23~O, H~many of them~O.
463463
464464These should not be superscripts or subscripts, because of the
465465unescaped spaces: a\^b c\^d, a\~b c\~d.