git.iko.soy/typeable/pandoc
on master help sign in
HTML reader: Fixed bug reading inline math with `$$`.
6c59f06John MacFarlane
src/Text/Pandoc/Readers/HTML.hs+2−2
@@ -476,8 +476,8 @@ pBlank = try $ do
476
476
477pTagContents :: Parser [Char] ParserState Inline
477pTagContents :: Parser [Char] ParserState Inline
478pTagContents =
478pTagContents =
479+ Math DisplayMath `fmap` mathDisplay
479− Math InlineMath `fmap` mathInline
480+ <|> Math InlineMath `fmap` mathInline
480− <|> Math DisplayMath `fmap` mathDisplay
481 <|> pStr
481 <|> pStr
482 <|> pSpace
482 <|> pSpace
483 <|> smartPunctuation pTagContents
483 <|> smartPunctuation pTagContents