aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/ConTeXt.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-10-12 20:08:35 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-10-12 21:00:15 -0700
commitc636b5dd1640c1f13f21bb2828c817213455229f (patch)
tree706d1139d395be30293bfb27d9ec8990e0836dd1 /src/Text/Pandoc/Writers/ConTeXt.hs
parent6593f9638e7b53c2b5d738c27ff9dfccdbf2ce39 (diff)
downloadpandoc-c636b5dd1640c1f13f21bb2828c817213455229f.tar.gz
Revert "Depend on pandoc-types 1.23, remove Null constructor on Block."
This reverts commit fb0d6c7cb63a791fa72becf21ed493282e65ea91.
Diffstat (limited to 'src/Text/Pandoc/Writers/ConTeXt.hs')
-rw-r--r--src/Text/Pandoc/Writers/ConTeXt.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/ConTeXt.hs b/src/Text/Pandoc/Writers/ConTeXt.hs
index 0150f7dff..3cafcefba 100644
--- a/src/Text/Pandoc/Writers/ConTeXt.hs
+++ b/src/Text/Pandoc/Writers/ConTeXt.hs
@@ -154,6 +154,7 @@ toLabel z = T.concatMap go z
-- | Convert Pandoc block element to ConTeXt.
blockToConTeXt :: PandocMonad m => Block -> WM m (Doc Text)
+blockToConTeXt Null = return empty
blockToConTeXt (Div attr@(_,"section":_,_)
(Header level _ title' : xs)) = do
header' <- sectionHeader attr level title'