git.iko.soy/typeable/pandoc
on master help sign in
Docx reader: Handle lists correctly inside table cells.

Previously we didn't transform lists inside table cells.

commit24fd0ad04d2f057f0cc035bfcdfb98c07ad3072a authorJesse Rosenthal <jrosenthal@jhu.edu> dateFri 13 Feb 2015, 09:02 (12 years ago) parentba59e54
1 file changed+3−1
src/Text/Pandoc/Readers/Docx.hs+3−1
src/Text/Pandoc/Readers/Docx.hs+3−1
@@ -397,7 +397,9 @@ singleParaToPlain blks
397397singleParaToPlain blks = blks
398398
399399cellToBlocks :: Cell -> DocxContext Blocks
400−cellToBlocks (Cell bps) = concatReduce <$> mapM bodyPartToBlocks bps
400+cellToBlocks (Cell bps) = do
401+ blks <- concatReduce <$> mapM bodyPartToBlocks bps
402+ return $ fromList $ blocksToDefinitions $ blocksToBullets $ toList blks
401403
402404rowToBlocksList :: Row -> DocxContext [Blocks]
403405rowToBlocksList (Row cells) = do