aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MANUAL.txt2
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs3
2 files changed, 3 insertions, 2 deletions
diff --git a/MANUAL.txt b/MANUAL.txt
index 51892e662..9f4289a21 100644
--- a/MANUAL.txt
+++ b/MANUAL.txt
@@ -3526,7 +3526,7 @@ LaTeX macros
#### Extension: `latex_macros` ####
-For output formats other than LaTeX, pandoc will parse LaTeX
+When this extension is enabled, pandoc will parse LaTeX
macro definitions and apply the resulting macros to all LaTeX
math and raw LaTeX. So, for example, the following will work in
all output formats, not just LaTeX:
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs
index 4d15c827c..8cdadca5b 100644
--- a/src/Text/Pandoc/Writers/HTML.hs
+++ b/src/Text/Pandoc/Writers/HTML.hs
@@ -125,7 +125,8 @@ defaultWriterState = WriterState {stNotes= [], stMath = False, stQuotes = False,
strToHtml :: String -> Html
strToHtml ('\'':xs) = preEscapedString "\'" `mappend` strToHtml xs
-strToHtml xs@(_:_) = case break (=='\'') xs of
+strToHtml ('"' :xs) = preEscapedString "\"" `mappend` strToHtml xs
+strToHtml xs@(_:_) = case break (\c -> c == '\'' || c == '"') xs of
(_ ,[]) -> toHtml xs
(ys,zs) -> toHtml ys `mappend` strToHtml zs
strToHtml [] = ""