diff options
| author | John MacFarlane <[email protected]> | 2024-09-08 09:37:08 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2024-09-08 09:41:17 -0700 |
| commit | 7a569b9c8f4129558ffd796b4c7f046ece65a9b6 (patch) | |
| tree | fbcdf2f6b11c632aa421f3be33a59f5b062fcc2a /pandoc-server | |
| parent | 25b9314472f185860acf93911b729e12b2faad70 (diff) | |
Initialize some missing fields in pandoc-server.
writerEpubTitlePage, writerChunkTemplate, writerListTables.
Diffstat (limited to 'pandoc-server')
| -rw-r--r-- | pandoc-server/src/Text/Pandoc/Server.hs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pandoc-server/src/Text/Pandoc/Server.hs b/pandoc-server/src/Text/Pandoc/Server.hs index e4825721f..b5b8a77e7 100644 --- a/pandoc-server/src/Text/Pandoc/Server.hs +++ b/pandoc-server/src/Text/Pandoc/Server.hs @@ -21,6 +21,7 @@ import Text.Pandoc import Text.Pandoc.Writers.Shared (lookupMetaString) import Text.Pandoc.Citeproc (processCitations) import Text.Pandoc.Highlighting (lookupHighlightingStyle) +import Text.Pandoc.Chunks (PathTemplate(..)) import qualified Text.Pandoc.UTF8 as UTF8 import Data.Text (Text) import qualified Data.Text as T @@ -302,7 +303,7 @@ server = convertBytes , readerStripComments = optStripComments opts } - let writeropts = def + let writeropts = WriterOptions { writerExtensions = writerExts , writerTabStop = optTabStop opts , writerWrapText = optWrap opts @@ -327,10 +328,15 @@ server = convertBytes , writerListings = optListings opts , writerHighlightStyle = hlStyle , writerSetextHeaders = optSetextHeaders opts + , writerListTables = optListTables opts , writerEpubSubdirectory = T.pack $ optEpubSubdirectory opts , writerEpubMetadata = T.pack <$> optEpubMetadata opts , writerEpubFonts = optEpubFonts opts + , writerEpubTitlePage = optEpubTitlePage opts , writerSplitLevel = optSplitLevel opts + , writerChunkTemplate = maybe (PathTemplate "%s-%i.html") + PathTemplate + (optChunkTemplate opts) , writerTOCDepth = optTOCDepth opts , writerReferenceDoc = optReferenceDoc opts , writerReferenceLocation = optReferenceLocation opts |
