@@ -45,7 +45,7 @@ import GHC.Generics (Generic)
45
45
import Skylighting (SyntaxMap , defaultSyntaxMap )
46
46
import Text.DocTemplates (Context (.. ), Template )
47
47
import Text.Pandoc.Extensions
48
- import Text.Pandoc.Highlighting (Style , pygments )
48
+ import Text.Pandoc.Highlighting (Style , breezeDark , pygments )
49
49
import Text.Pandoc.Shared (camelCaseStrToHyphenated )
50
50
import Data.Aeson.TH (deriveJSON , defaultOptions , Options (.. ),
51
51
SumEncoding (.. ))
@@ -255,6 +255,7 @@ data WriterOptions = WriterOptions
255
255
, writerListings :: Bool -- ^ Use listings package for code
256
256
, writerHighlightStyle :: Maybe Style -- ^ Style to use for highlighting
257
257
-- (Nothing = no highlighting)
258
+ , writerHighlightStyleDark :: Maybe Style -- ^ Style to use for highlighting dark mode
258
259
, writerSetextHeaders :: Bool -- ^ Use setext headers for levels 1-2 in markdown
259
260
, writerEpubSubdirectory :: Text -- ^ Subdir for epub in OCF
260
261
, writerEpubMetadata :: Maybe Text -- ^ Metadata to include in EPUB
@@ -290,6 +291,7 @@ instance Default WriterOptions where
290
291
, writerTopLevelDivision = TopLevelDefault
291
292
, writerListings = False
292
293
, writerHighlightStyle = Just pygments
294
+ , writerHighlightStyleDark = Just breezeDark
293
295
, writerSetextHeaders = False
294
296
, writerEpubSubdirectory = " EPUB"
295
297
, writerEpubMetadata = Nothing
0 commit comments