git.iko.soy/typeable/pandoc
on master help sign in
Markdown reader: don't cross line boundary parsing pipe table row.

Previously an emph element could be parsed across the newline at the end of the pipe table row. I thought this would help with #2765, but it doesn't.

commit4ed64835cb475f3da80ed7b729516c7a90891d94 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 9 Mar 2016, 08:33 (11 years ago) parent6bfaa5a
1 file changed+7−1
src/Text/Pandoc/Readers/Markdown.hs+7−1
src/Text/Pandoc/Readers/Markdown.hs+7−1
@@ -1372,7 +1372,13 @@ sepPipe = try $ do
13721372
13731373-- parse a row, also returning probable alignments for org-table cells
13741374pipeTableRow :: MarkdownParser (F [Blocks])
1375−pipeTableRow = do
1375+pipeTableRow = try $ do
1376+ scanForPipe
1377+ raw <- anyLine
1378+ parseFromString pipeTableRow' (raw ++ "\n")
1379+
1380+pipeTableRow' :: MarkdownParser (F [Blocks])
1381+pipeTableRow' = do
13761382 skipMany spaceChar
13771383 openPipe <- (True <$ char '|') <|> return False
13781384 let cell = mconcat <$>