aboutsummaryrefslogtreecommitdiff
path: root/FormatOpts.hs
blob: 363f6cd7f3de56aaa9ba21defaa017c1caef57b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module FormatOpts where

import Text.Pandoc.Extensions
import Text.Pandoc.Highlighting (pygments)
import Text.Pandoc.Options

-- | Default markdown reading options for Pandoc.
markdownReadOpts =
  def
    { readerExtensions =
        Text.Pandoc.Extensions.enableExtension
          Text.Pandoc.Extensions.Ext_smart
          Text.Pandoc.Extensions.pandocExtensions
    }

-- | Default HTML writing options for Pandoc.
htmlWriteOpts :: WriterOptions
htmlWriteOpts =
  def
    { writerExtensions = enableExtension Ext_smart pandocExtensions
    , writerHighlightStyle = Just pygments
    , writerWrapText = WrapPreserve
    }