git.iko.soy/typeable/pandoc
on master help sign in
Print unicode \160 literally in markdown writer, rather than as  .
a85dfb8fiddlosopher
Text/Pandoc/Writers/Markdown.hs+1−1
@@ -100,7 +100,7 @@ noteToMarkdown opts num blocks = do
100-- | Escape special characters for Markdown.
100-- | Escape special characters for Markdown.
101escapeString :: String -> String
101escapeString :: String -> String
102escapeString = escapeStringUsing markdownEscapes
102escapeString = escapeStringUsing markdownEscapes
103− where markdownEscapes = ('\160', "&nbsp;"):(backslashEscapes "`<\\*_^~")
103+ where markdownEscapes = backslashEscapes "`<\\*_^~"
104
104
105-- | Convert bibliographic information into Markdown header.
105-- | Convert bibliographic information into Markdown header.
106metaToMarkdown :: WriterOptions -> Meta -> State WriterState Doc
106metaToMarkdown :: WriterOptions -> Meta -> State WriterState Doc
tests/writer.markdown+3−3
@@ -269,7 +269,7 @@ Autonumbering:
269
269
270Should not be a list item:
270Should not be a list item:
271
271
272−M.A.&nbsp;2007
272+M.A. 2007
273
273
274B. Williams
274B. Williams
275
275
@@ -457,9 +457,9 @@ This is code: `>`, `$`, `\`, `\$`, `<html>`.
457
457
458~~This is *strikeout*.~~
458~~This is *strikeout*.~~
459
459
460−Superscripts: a^bc^d a^*hello*^ a^hello&nbsp;there^.
460+Superscripts: a^bc^d a^*hello*^ a^hello there^.
461
461
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.
463
463
464These should not be superscripts or subscripts, because of the
464These should not be superscripts or subscripts, because of the
465unescaped spaces: a\^b c\^d, a\~b c\~d.
465unescaped spaces: a\^b c\^d, a\~b c\~d.