diff options
-rw-r--r-- | debian/changelog | 2 | ||||
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 50f82d033..61471cbcf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -40,6 +40,8 @@ pandoc (0.45) unstable; urgency=low + Parse fields associated with '.. image::' blocks, and use 'alt' field, if given, for image alt and title attributes. + * LaTeX reader: Modified specialChar so that '"' characters are parsed. + * HTML writer: Don't produce HTML for table of contents if there are no headers. (This would be an empty list, which is invalid XHTML.) diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index 77c642e7e..37cc2bfe4 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -494,7 +494,7 @@ escapedChar = do -- ignore standalone, nonescaped special characters unescapedChar = oneOf "`$^&_#{}|<>" >> return (Str "") -specialChar = choice [ backslash, tilde, caret, bar, lt, gt ] +specialChar = choice [ backslash, tilde, caret, bar, lt, gt, doubleQuote ] backslash = try (string "\\textbackslash") >> return (Str "\\") @@ -508,6 +508,8 @@ lt = try (string "\\textless") >> return (Str "<") gt = try (string "\\textgreater") >> return (Str ">") +doubleQuote = char '"' >> return (Str "\"") + code = code1 <|> code2 code1 = try $ do |