aboutsummaryrefslogtreecommitdiff
path: root/pandoc-server/src
AgeCommit message (Collapse)Author
2025-09-02Refactor highlighting options [API Change]Albert Krewinkel
A new command line option `--syntax-highlighting` is provided; it takes the values `none`, `default`, `idiomatic`, a style name, or a path to a theme file. It replaces the `--no-highlighting`, `--highlighting-style`, and `--listings` options. The `writerListings` and `writerHighlightStyle` fields of the `WriterOptions` type are replaced with `writerHighlightStyle`. Closes: #10525
2024-09-22Add support for list of figures (lof) and list of tables (lot) (#10029)Akash Patel
Two new command-line options are added: `--lof[=true|false]`, `--list-of-figures[=true|false]` `--lot[=true|false]`, `--list-of-tables[=true|false]` Only docx, latex, and context are supported at this point. Setting the `lof` and `lot` variables will also work for the formats that are currently supported. [API changes] + Lua: `list_of_figures` and `list_of_tables` can now be used in writer options. + Text.Pandoc.Options: add `writerListOfFigures` and `writerListOfTables` fields to `WriterOptions`. + Text.Pandoc.App.Opt: add `optListOfFigures` and `optListOfTables` to `Opt`. Closes #8245. Co-authored-by: John MacFarlane <[email protected]>
2024-09-08Initialize some missing fields in pandoc-server.John MacFarlane
writerEpubTitlePage, writerChunkTemplate, writerListTables.
2024-09-08Finishing touches on `--link-images`:John MacFarlane
- Document in defaults file section of MANUAL. - Add to pandoc-lua-engine writer option marshalling. - Add to pandoc-server initialization of writer options.
2024-09-08pandoc-server: initialize caption position optionsJohn MacFarlane
2024-05-10Collect transforms in new module T.P.Transforms. [API change]Albert Krewinkel
Bundles all document transformations, i.e., functions that run predefined filters on Pandoc documents.
2023-12-06pandoc-server: Switch from base64 to base64-bytestring.John MacFarlane
See #9233.
2023-01-12Replace `--epub-chapter-level` with `--split-level`.John MacFarlane
Rationale: we need this splitting level now not just in EPUB but in chunked HTML. `--epub-chapter-level` will still function as a deprecated synonynm. `epub-chapter-level` will also continue to work in defaults files, ande `epub_chapter_level` will still work for Lua marshalling. [API changes] Text.Pandoc.App.Opt: remove `optEpubChapterLevel`, add `optSplitLevel`. Text.Pandoc.Options: remove `writerEpubChapterLevel`, add `writerSplitLevel`.
2022-11-09pandoc-server: add ContentType to CORS policy.John MacFarlane
See #8427.
2022-11-08Add simple CORS support to pandoc-server.John MacFarlane
Closes #8427.
2022-10-15Minor code cleanups.John MacFarlane
2022-10-08[API Change] Change argument type of `getReader`, `getWriter`.Albert Krewinkel
The functions now take a `FlavoredFormat` instead of a text argument.
2022-10-08[API Change] Add new module "Text.Pandoc.Format"Albert Krewinkel
The module provides functions and types for format spec parsing and processing. The function `parseFormatSpec` was moved from Text.Pandoc.Extensions to the new module and renamed to `parseFlavoredFormat`. It now operates in a PandocMonad and is based on the updated types.
2022-09-30[API Change] Rename `pandocVersion` to `pandocVersionText`...Albert Krewinkel
and add a new `pandocVersion` value with type `Version`. This is consistent with the type used for `pandocTypesVersion` and allows to use the value where a Version type is required.
2022-09-29Remove deprecated option `--strip-empty-paragraphs`.John MacFarlane
2022-09-27T.P.Server: remove `parseServerOpts`.John MacFarlane
[API change] We only use `parseServerOptsFromArgs`.
2022-09-27pandoc-server: minor code simplification.John MacFarlane
2022-09-27pandoc-cli: support "lua" and "serve" as commandsAlbert Krewinkel
Pandoc behaves like `pandoc-lua` and `pandoc-server` if the first argument is `lua` and `serve`, respectively.
2022-09-22Split pandoc-server, pandoc-cli into separate packages. (#8309)John MacFarlane
This also removes the unnecessary Setup.hs from pandoc. Cabal does not need this with build-type 'simple'.