git.iko.soy/typeable/pandoc
on master help sign in
Modified specialChar in LaTeX reader so that '"'
63dfc3afiddlosopher
debian/changelog+2
@@ -40,6 +40,8 @@ pandoc (0.45) unstable; urgency=low
40 + Parse fields associated with '.. image::' blocks, and use 'alt'
40 + Parse fields associated with '.. image::' blocks, and use 'alt'
41 field, if given, for image alt and title attributes.
41 field, if given, for image alt and title attributes.
42
42
43+ * LaTeX reader: Modified specialChar so that '"' characters are parsed.
44+
43 * HTML writer: Don't produce HTML for table of contents if there are
45 * HTML writer: Don't produce HTML for table of contents if there are
44 no headers. (This would be an empty list, which is invalid XHTML.)
46 no headers. (This would be an empty list, which is invalid XHTML.)
45
47
src/Text/Pandoc/Readers/LaTeX.hs+3−1
@@ -494,7 +494,7 @@ escapedChar = do
494-- ignore standalone, nonescaped special characters
494-- ignore standalone, nonescaped special characters
495unescapedChar = oneOf "`$^&_#{}|<>" >> return (Str "")
495unescapedChar = oneOf "`$^&_#{}|<>" >> return (Str "")
496
496
497−specialChar = choice [ backslash, tilde, caret, bar, lt, gt ]
497+specialChar = choice [ backslash, tilde, caret, bar, lt, gt, doubleQuote ]
498
498
499backslash = try (string "\\textbackslash") >> return (Str "\\")
499backslash = try (string "\\textbackslash") >> return (Str "\\")
500
500
@@ -508,6 +508,8 @@ lt = try (string "\\textless") >> return (Str "<")
508
508
509gt = try (string "\\textgreater") >> return (Str ">")
509gt = try (string "\\textgreater") >> return (Str ">")
510
510
511+doubleQuote = char '"' >> return (Str "\"")
512+
511code = code1 <|> code2
513code = code1 <|> code2
512
514
513code1 = try $ do
515code1 = try $ do