aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-01-20 11:09:44 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-01-20 11:09:44 -0800
commit6c59f060a769c7f312137d5c1a49cf878ea5b2a2 (patch)
tree447bd5f05fd54998eec4d2a02e7520a4cea7e609 /src/Text/Pandoc
parent1bc9cb4105d432e27bc1b18397ac1c1a5630a781 (diff)
downloadpandoc-6c59f060a769c7f312137d5c1a49cf878ea5b2a2.tar.gz
HTML reader: Fixed bug reading inline math with `$$`.
See #225.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Readers/HTML.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/HTML.hs b/src/Text/Pandoc/Readers/HTML.hs
index 506fe7770..d1e4d0024 100644
--- a/src/Text/Pandoc/Readers/HTML.hs
+++ b/src/Text/Pandoc/Readers/HTML.hs
@@ -476,8 +476,8 @@ pBlank = try $ do
pTagContents :: Parser [Char] ParserState Inline
pTagContents =
- Math InlineMath `fmap` mathInline
- <|> Math DisplayMath `fmap` mathDisplay
+ Math DisplayMath `fmap` mathDisplay
+ <|> Math InlineMath `fmap` mathInline
<|> pStr
<|> pSpace
<|> smartPunctuation pTagContents