git.iko.soy/typeable/pandoc
on master help sign in
Modified prettyPandoc to handle DefinitionList elements.
0ce965ffiddlosopher
src/Text/Pandoc/Shared.hs+4
@@ -190,6 +190,10 @@ prettyBlock (OrderedList blockLists) =
190prettyBlock (BulletList blockLists) = "BulletList\n" ++
190prettyBlock (BulletList blockLists) = "BulletList\n" ++
191 indentBy 2 0 ("[ " ++ (joinWithSep ", "
191 indentBy 2 0 ("[ " ++ (joinWithSep ", "
192 (map (\blocks -> prettyBlockList 2 blocks) blockLists))) ++ " ]"
192 (map (\blocks -> prettyBlockList 2 blocks) blockLists))) ++ " ]"
193+prettyBlock (DefinitionList blockLists) = "DefinitionList\n" ++
194+ indentBy 2 0 ("[ " ++ (joinWithSep ", "
195+ (map (\(term, blocks) -> "(" ++ show term ++ ",\n" ++
196+ indentBy 1 2 (prettyBlockList 2 blocks) ++ ")") blockLists))) ++ " ]"
193prettyBlock block = show block
197prettyBlock block = show block
194
198
195-- | Prettyprint Pandoc document.
199-- | Prettyprint Pandoc document.