diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2023-01-30 18:41:44 -0800 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2023-01-30 21:09:02 -0800 |
| commit | 8fc4fc66a31a7a13db9072ebdf0c3f017d6ec51e (patch) | |
| tree | bdef1df49034727a5cb1cf4821aa7e92a306c006 /src/Text/Pandoc/App/CommandLineOptions.hs | |
| parent | 1193bb59641f0fa0ab033d0382916be4c83e07da (diff) | |
Add new `--chunk-template` option (closes #8581).
* Add `--chunk-template` CLI option, allowing more control over the
chunk filenames in chunked HTML output.
* Text.Pandoc.App: Add `optChunkTemplate` constructor to Opt [API change].
* Text.Pandoc.Options: add `writerChunkTemplate` contsructor to
WriterOptions [API change].
* Text.Pandoc.Chunks: add Data, Typeable, Generic instances for
PathTemplate.
Diffstat (limited to 'src/Text/Pandoc/App/CommandLineOptions.hs')
| -rw-r--r-- | src/Text/Pandoc/App/CommandLineOptions.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs index 3e8b832d2..b0e54c92d 100644 --- a/src/Text/Pandoc/App/CommandLineOptions.hs +++ b/src/Text/Pandoc/App/CommandLineOptions.hs @@ -793,6 +793,13 @@ options = "NUMBER") "" -- "Header level at which to split documents in chunked HTML or EPUB" + , Option "" ["chunk-template"] + (ReqArg + (\arg opt -> + return opt{ optChunkTemplate = Just (T.pack arg) }) + "PATHTEMPLATE") + "" -- "Template for file paths in chunkedhtml" + , Option "" ["epub-chapter-level"] (ReqArg (\arg opt -> do |
