Commit Graph

53 Commits

Author SHA1 Message Date
John MacFarlane c73a35a2e7 Add --math-method option.
This replaces (now deprecated but still functional) options
`--mathml`, `--mathjax`, `--gladtex`, `--katex`, `--webtex`.

The `plain` style can now be specified explicitly.

In defaults files, `html-math-method` is now
`math-method` (though `html-math-method` will still work).

Text.Pandoc.App.Opt:

- In unexported type CompletionKind, add MathMethods.
- In Opt, change `optHTMLMathMethod` to `optMathMethod`. [API  change]

Text.Pandoc.Options:

- Rename HTMLMathMethod type to MathMethod. [API change]
- Rename `writerHTMLMathMethod` field of WriterOptions to
  `writerMathMethod`. [API change]

Text.Pandoc.App.Completion:

- Clean up code.
- Add support for `--math-method`.
2026-08-26 09:46:48 -07:00
John MacFarlane e86b71aca2 Bump to pandoc-server 0.1.3.1 2026-07-21 22:33:33 +02:00
John MacFarlane 8831b48b9d Change symlink to regular file for COPYING.md in...
pandoc-cli, pandoc-lua-engine, pandoc-server.
2026-07-12 12:09:50 +02:00
John MacFarlane 0951c95d1d pandoc-server: bump to 0.1.3. 2026-06-03 16:34:44 +02:00
John MacFarlane f8fddc86f3 pandoc-server: handle typst-inputs, require pandoc >= 3.10 2026-06-03 16:34:44 +02:00
John MacFarlane ad4bf9aa31 Accept aeson 2.3. 2026-05-29 09:34:48 +02:00
John MacFarlane 2453bae3f8 pandoc-server: bump version to 0.1.2, depend on pandoc 3.9. 2026-02-02 17:24:18 +01:00
John MacFarlane bdc55f6fe1 pandoc-server - bump to 0.1.1, change pandoc version bounds. 2025-09-06 11:05:33 +02:00
Albert Krewinkel e0acb24528 Refactor highlighting options [API Change]
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
2025-09-02 17:50:47 +02:00
John MacFarlane bb41fcd6ec Bump pandoc-server to 0.1.0.11 2025-05-14 14:40:13 -07:00
John MacFarlane 0d00a3867d pandoc-server.cabal: bump versions for container, pandoc. 2025-05-14 14:37:50 -07:00
John MacFarlane 01a7e6f070 pandoc-server: use https: for git repo. 2025-02-09 12:24:56 -08:00
John MacFarlane aaf9223b78 Depend on typst 0.6.1 2024-12-07 13:55:11 -08:00
John MacFarlane ac503ce6fe Bump pandoc-server version to 0.1.0.10 2024-12-07 12:29:15 -08:00
John MacFarlane ec27d4bd22 Bump upper bound for data-default. 2024-10-28 09:41:10 -07:00
John MacFarlane 0345e140bc Bump version of pandoc-server to 0.1.0.9. 2024-10-05 12:42:20 -07:00
Akash Patel ca348940e3 Add support for list of figures (lof) and list of tables (lot) (#10029)
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 <jgm@berkeley.edu>
2024-09-22 11:49:52 -07:00
John MacFarlane 103149d75d Bump pandoc-server to 0.1.0.8. 2024-09-09 22:13:36 -07:00
John MacFarlane 7a569b9c8f Initialize some missing fields in pandoc-server.
writerEpubTitlePage, writerChunkTemplate, writerListTables.
2024-09-08 09:41:17 -07:00
John MacFarlane 25b9314472 Finishing touches on --link-images:
- 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-08 09:07:55 -07:00
John MacFarlane 6be667625e pandoc-server: initialize caption position options 2024-09-08 08:52:10 -07:00
John MacFarlane cb605bb7bf Bump pandoc-server to 0.1.0.7, depend on latest pandoc 2024-07-28 13:46:42 -07:00
Albert Krewinkel 7db19d8cd4 Update more copyright dates to 2024. 2024-06-08 16:46:42 +02:00
John MacFarlane e4e125d61b pandoc-server: depend on pandoc >= 3.2. 2024-05-15 08:16:05 -07:00
John MacFarlane f3708ed738 Bump pandoc-server to 0.1.0.6 2024-05-15 08:15:17 -07:00
Albert Krewinkel 7394bc920c Collect transforms in new module T.P.Transforms. [API change]
Bundles all document transformations, i.e., functions that run
predefined filters on Pandoc documents.
2024-05-10 11:16:41 -07:00
John MacFarlane f2e3e9891a Bump pandoc-server to 0.1.0.5 and allow containsers 0.7 2024-02-14 22:59:09 -08:00
John MacFarlane 705e3e6aaf pandoc-server: bump to 0.1.0.4. 2023-12-11 22:10:38 -08:00
John MacFarlane e7348b4f76 pandoc-server: Switch from base64 to base64-bytestring.
See #9233.
2023-12-06 09:11:28 -08:00
John MacFarlane 83b560cd6e pandoc-server: allow text 2.1. 2023-08-31 09:28:26 -07:00
John MacFarlane c648cc778b Bump to pandoc-server 0.1.0.3 2023-08-31 09:26:38 -07:00
John MacFarlane 6d43490b3a Allow skylighting 0.14 (and require it in pandoc core). 2023-08-26 23:15:41 -07:00
John MacFarlane c473e53266 Bump pandoc-server version to 0.1.0.2. 2023-08-06 19:09:01 -07:00
John MacFarlane 14b5298052 Bump dates, update dependencies. 2023-08-06 11:44:41 -07:00
John MacFarlane eb1050428d Bump pandoc-server to 0.1.0.1. 2023-06-26 10:06:31 -07:00
John MacFarlane 9bb5c3beb8 Bump upper bound on servant-server.
This is needed for compilation with ghc 9.6.
2023-06-26 09:57:14 -07:00
John MacFarlane aa747f194f Require pandoc-types 1.23, update dependencies.
This fails to build because pandoc-lua-marshal still needs updating.
2023-01-13 10:42:07 -08:00
Albert Krewinkel 28fa37e554 CI: test with GHC 9.2.5 and 9.4.4 2023-01-12 22:21:39 +01:00
John MacFarlane d7960212c0 Replace --epub-chapter-level with --split-level.
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`.
2023-01-12 09:04:29 -08:00
John MacFarlane f038897187 Use doctemplates 0.11.
This avoids a transitive dependency on HsYAML, which we no longer
use in pandoc.
2022-11-21 10:44:59 -08:00
John MacFarlane 7ef00d7226 pandoc-server: add ContentType to CORS policy.
See #8427.
2022-11-09 17:49:40 -08:00
John MacFarlane e2899fd52a Add simple CORS support to pandoc-server.
Closes #8427.
2022-11-08 12:45:15 -08:00
John MacFarlane 1195f5bb3b Minor code cleanups. 2022-10-15 11:43:56 -07:00
Albert Krewinkel 5589b1f8f9 [API Change] Change argument type of getReader, getWriter.
The functions now take a `FlavoredFormat` instead of a text argument.
2022-10-08 16:05:48 -07:00
Albert Krewinkel a4218b9719 [API Change] Add new module "Text.Pandoc.Format"
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-10-08 16:05:48 -07:00
Albert Krewinkel ddaadc88bc [API Change] Rename pandocVersion to pandocVersionText...
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-30 08:33:40 -07:00
John MacFarlane 931ccd0376 Remove deprecated option --strip-empty-paragraphs. 2022-09-29 10:37:46 -07:00
John MacFarlane 9169eee7e1 Bump pandoc version to 3.0.
In light of the package splitting changes.
2022-09-29 08:18:02 -07:00
John MacFarlane fd1b3f2b6f Bump version to 2.20, depend on >= 2.20 in pandoc-cli, pandoc-server. 2022-09-28 08:50:11 -07:00
John MacFarlane fde83cdcab T.P.Server: remove parseServerOpts.
[API change]
We only use `parseServerOptsFromArgs`.
2022-09-27 22:10:04 -07:00