@@ -114,7 +114,6 @@ convertWithOpts opts args = do
114114 , optSelfContained = selfContained
115115 , optHtml5 = html5
116116 , optHtmlQTags = htmlQTags
117− , optHighlight = highlight
118117 , optHighlightStyle = highlightStyle
119118 , optTopLevelDivision = topLevelDivision
120119 , optHTMLMathMethod = mathMethod'
@@ -324,7 +323,6 @@ convertWithOpts opts args = do
324323 writerListings = listings,
325324 writerBeamer = False,
326325 writerSlideLevel = slideLevel,
327− writerHighlight = highlight,
328326 writerHighlightStyle = highlightStyle,
329327 writerSetextHeaders = setextHeaders,
330328 writerEpubMetadata = epubMetadata,
@@ -532,8 +530,7 @@ data Opt = Opt
532530 , optSelfContained :: Bool -- ^ Make HTML accessible offline
533531 , optHtml5 :: Bool -- ^ Produce HTML5 in HTML
534532 , optHtmlQTags :: Bool -- ^ Use <q> tags in HTML
535− , optHighlight :: Bool -- ^ Highlight source code
536− , optHighlightStyle :: Style -- ^ Style to use for highlighted code
533+ , optHighlightStyle :: Maybe Style -- ^ Style to use for highlighted code
537534 , optTopLevelDivision :: TopLevelDivision -- ^ Type of the top-level divisions
538535 , optHTMLMathMethod :: HTMLMathMethod -- ^ Method to print HTML math
539536 , optReferenceDoc :: Maybe FilePath -- ^ Path of reference doc
@@ -595,8 +592,7 @@ defaultOpts = Opt
595592 , optSelfContained = False
596593 , optHtml5 = False
597594 , optHtmlQTags = False
598− , optHighlight = True
599− , optHighlightStyle = pygments
595+ , optHighlightStyle = Just pygments
600596 , optTopLevelDivision = TopLevelDefault
601597 , optHTMLMathMethod = PlainMath
602598 , optReferenceDoc = Nothing
@@ -836,14 +832,14 @@ options =
836832
837833 , Option "" ["no-highlight"]
838834 (NoArg
839− (\opt -> return opt { optHighlight = False }))
835+ (\opt -> return opt { optHighlightStyle = Nothing }))
840836 "" -- "Don't highlight source code"
841837
842838 , Option "" ["highlight-style"]
843839 (ReqArg
844840 (\arg opt -> do
845841 case lookup (map toLower arg) highlightingStyles of
846− Just s -> return opt{ optHighlightStyle = s }
842+ Just s -> return opt{ optHighlightStyle = Just s }
847843 Nothing -> err 39 $ "Unknown style: " ++ arg)
848844 "STYLE")
849845 "" -- "Style for highlighted code"