git.iko.soy/typeable/pandoc
on master help sign in
HTML reader: Fixed bug reading inline math with `$$`.

See #225.

commit6c59f060a769c7f312137d5c1a49cf878ea5b2a2 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 20 Jan 2014, 11:09 (13 years ago) parent1bc9cb4
1 file changed+2−2
src/Text/Pandoc/Readers/HTML.hs+2−2
src/Text/Pandoc/Readers/HTML.hs+2−2
@@ -476,8 +476,8 @@ pBlank = try $ do
476476
477477pTagContents :: Parser [Char] ParserState Inline
478478pTagContents =
479− Math InlineMath `fmap` mathInline
480− <|> Math DisplayMath `fmap` mathDisplay
479+ Math DisplayMath `fmap` mathDisplay
480+ <|> Math InlineMath `fmap` mathInline
481481 <|> pStr
482482 <|> pSpace
483483 <|> smartPunctuation pTagContents