git.iko.soy/typeable/pandoc
on master help sign in
Markdown reader: when splitting pipe table cells, skip tex math.
fa59e2eJohn MacFarlane
src/Text/Pandoc/Readers/Markdown.hs+1−1
@@ -1401,7 +1401,7 @@ pipeTableRow = try $ do
1401 skipMany spaceChar
1401 skipMany spaceChar
1402 openPipe <- (True <$ char '|') <|> return False
1402 openPipe <- (True <$ char '|') <|> return False
1403 -- split into cells
1403 -- split into cells
1404− let chunk = void (code <|> rawHtmlInline <|> escapedChar <|> rawLaTeXInline')
1404+ let chunk = void (code <|> math <|> rawHtmlInline <|> escapedChar <|> rawLaTeXInline')
1405 <|> void (noneOf "|\n\r")
1405 <|> void (noneOf "|\n\r")
1406 let cellContents = ((trim . snd) <$> withRaw (many chunk)) >>=
1406 let cellContents = ((trim . snd) <$> withRaw (many chunk)) >>=
1407 parseFromString pipeTableCell
1407 parseFromString pipeTableCell