Muse reader: simplify tableCell implementation (#3846)
This commit is contained in:
parent
400a4ef5f3
commit
cfa597fc2a
1 changed files with 1 additions and 3 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue