mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 09:47:06 +00:00
Muse reader: simplify tableCell implementation (#3846)
This commit is contained in:
committed by
John MacFarlane
parent
400a4ef5f3
commit
cfa597fc2a
@@ -391,9 +391,7 @@ museAppendElement tbl element =
|
||||
return tbl{ museTableCaption = inlines' }
|
||||
|
||||
tableCell :: PandocMonad m => MuseParser m (F Blocks)
|
||||
tableCell = try $ do
|
||||
content <- trimInlinesF . mconcat <$> manyTill inline (lookAhead cellEnd)
|
||||
return $ B.plain <$> content
|
||||
tableCell = try $ liftM B.plain . trimInlinesF . mconcat <$> manyTill inline (lookAhead cellEnd)
|
||||
where cellEnd = try $ void (many1 spaceChar >> char '|') <|> void newline <|> eof
|
||||
|
||||
tableElements :: PandocMonad m => MuseParser m [MuseTableElement]
|
||||
|
||||
Reference in New Issue
Block a user