git.iko.soy/typeable/pandoc
on master help sign in
Markdown reader: when splitting pipe table cells, skip tex math.

You might have a `|` character inside math. (Or for that matter something that the parser might mistake for raw HTML.) See #3481.

commitfa59e2ef28faf524d576f05eaa6c411856736ef3 authorJohn MacFarlane <jgm@berkeley.edu> dateThu 2 Mar 2017, 10:25 (10 years ago) parentfe4311d
1 file changed+1−1
src/Text/Pandoc/Readers/Markdown.hs+1−1
src/Text/Pandoc/Readers/Markdown.hs+1−1
@@ -1401,7 +1401,7 @@ pipeTableRow = try $ do
14011401 skipMany spaceChar
14021402 openPipe <- (True <$ char '|') <|> return False
14031403 -- split into cells
1404− let chunk = void (code <|> rawHtmlInline <|> escapedChar <|> rawLaTeXInline')
1404+ let chunk = void (code <|> math <|> rawHtmlInline <|> escapedChar <|> rawLaTeXInline')
14051405 <|> void (noneOf "|\n\r")
14061406 let cellContents = ((trim . snd) <$> withRaw (many chunk)) >>=
14071407 parseFromString pipeTableCell