@@ -76,8 +76,8 @@ blocksToCommonMark opts bs = return $
7676 $ node DOCUMENT (blocksToNodes bs)
7777 where cmarkOpts = [optHardBreaks | isEnabled Ext_hard_line_breaks opts]
7878 colwidth = if writerWrapText opts
79− then writerColumns opts
80− else 0
79+ then Just $ writerColumns opts
80+ else Nothing
8181
8282inlinesToCommonMark :: WriterOptions -> [Inline] -> Identity String
8383inlinesToCommonMark opts ils = return $
@@ -85,8 +85,8 @@ inlinesToCommonMark opts ils = return $
8585 $ node PARAGRAPH (inlinesToNodes ils)
8686 where cmarkOpts = [optHardBreaks | isEnabled Ext_hard_line_breaks opts]
8787 colwidth = if writerWrapText opts
88− then writerColumns opts
89− else 0
88+ then Just $ writerColumns opts
89+ else Nothing
9090
9191blocksToNodes :: [Block] -> [Node]
9292blocksToNodes = foldr blockToNodes []