Use parseFromString' in Muse reader.

Now that it is polymorphic, this is possible, and it's a
better choice because it resets last string pos.
This commit is contained in:
John MacFarlane 2019-08-26 15:30:58 -07:00
parent 21c44da17a
commit 1dec5bacaa

View file

@ -676,7 +676,7 @@ museGridTableRow indent indices = try $ do
lns <- many1 $ try (indentWith indent *> museGridTableRawLine indices) lns <- many1 $ try (indentWith indent *> museGridTableRawLine indices)
let cols = map (unlines . map trimr) $ transpose lns let cols = map (unlines . map trimr) $ transpose lns
indentWith indent *> museGridTableHeader indentWith indent *> museGridTableHeader
sequence <$> mapM (parseFromString parseBlocks) cols sequence <$> mapM (parseFromString' parseBlocks) cols
museGridTableRawLine :: PandocMonad m museGridTableRawLine :: PandocMonad m
=> [Int] => [Int]