aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-11-06EPUB writer: refactor to use T.P.Chunks.issue6122John MacFarlane
2022-11-06Move SecInfo, toTOCTree to T.P.Chunks.John MacFarlane
Also add `secPath` to `SecInfo`.
2022-11-06Add Text.Pandoc.Chunks.John MacFarlane
This module provides functions to split Pandoc documents into chunks to be rendered in separate files, e.g. one per section. Internal identifiers are rewritten appropriately to point to the new locations. See #6122.
2022-11-06Remove stray character in epub.css.John MacFarlane
2022-11-06Fix warnings.John MacFarlane
2022-11-06EPUB writer: refactor createChaptersAndRefTable.John MacFarlane
2022-11-06T.P.Writers.Shared: refactor toTableOfContents.John MacFarlane
We now export `toTOCTree` and `SecInfo`, which provide a more neutral way of generating TOC information from Blocks, and we use these in `toTableOfContents`. This is desirable because some output formats may require a TOC structure that isn't just a rendered pandoc list.
2022-11-04Change default background color of PDFs generated via HTML (#8422)Marcin Serwin
* Change default background color of PDFs generated via HTML * Update tests
2022-11-04clarify font selection for pdf -t ms (#8421)nbehrnd
Previous versions of the documentation did not clarify much which options of font selection are available for the generation of .pdf via `-t ms`. Nor was there a description how to extend the set of of fonts provided by ghostscript/pdfgroff. This commit equally hints to Peter Schaffter's script install-fonts.sh to facilitate greatly the later, too.
2022-11-04Use ghc4pandoc 9.4.3 docker image (#8420)Olivier Benz
2022-11-02Text.Pandoc.App: Change `parseOptionsFromArgs` and `parseOptions`... (#8406)John MacFarlane
They now return `Either OptInfo Opt`. Add `OptInfo` type. Add `handleOptInfo` function. This performs the IO actions for things like `--version` that were previously done in `parseOptionsFromArgs`. An argument for a `ScriptingEngine` has been added, to facilitate printing custom templates and custom extensions for Lua filters. (However, at this stage nothing is yet done with it.) [API change]
2022-11-02EPUB writer: add includeTitlePage param to createNavEntry.John MacFarlane
So far this isn't used, but it contributes to solving #6097.
2022-11-02epub.css: left-align h1, as before.John MacFarlane
2022-11-02EPUB writer: Simplify params for createNavEntry.John MacFarlane
2022-11-02ODT reader: handle "section" elements.John MacFarlane
Previously these were simply skipped! Closes #8409.
2022-11-02ipynb reader: add cell id to attachment filename...John MacFarlane
...when storing in the MediaBag. Otherwise attachments with the same name can overwrite each other. Closes #8415.
2022-10-31Fix import.John MacFarlane
2022-10-31Add explicit imports to fix compiler warnings.John MacFarlane
2022-10-31First stab at mtl 2.3 compliance.John MacFarlane
This will no doubt produce a bunch of warnings and hence CI failures, which we'll need to work around with explicit imports.
2022-10-31Re-add TemplateHaskell pragma in pandoc-cli.John MacFarlane
This was an hlint false positive.
2022-10-30Improve 'make lint'.John MacFarlane
2022-10-30hlint suggestions.John MacFarlane
2022-10-30hlint suggestions.John MacFarlane
2022-10-30make lint: remove apply-refactJohn MacFarlane
2022-10-30.hlint.yaml: ignore "Use <&>"John MacFarlane
2022-10-29Nightly: strip executables on windows and macos.John MacFarlane
2022-10-29Use cabal for nightly builds.John MacFarlane
2022-10-29Fix an import warning.John MacFarlane
2022-10-29Nightly windows: add stack clean.John MacFarlane
2022-10-29Use T.P.XML lookupEntity in Jira reader.John MacFarlane
2022-10-29Re-export lookupEntity from Text.Pandoc.XML [API change].John MacFarlane
2022-10-29T.P.XML: use lookupEntity from commonmark-hs.John MacFarlane
2022-10-29T.P.Parsing.General: change `characterReference`, `charsInBalanced`.John MacFarlane
`characterReference` now returns a Text (as it should, because some named references don't correspond to a single Char), and uses the `lookupEntity` function from commonmark-hs instead of the slow one from tagsoup. `charsInBalanced` now takes a Text parser rather than a Char parser as argument. [API change]
2022-10-29ALlow nightly action to be run manually.John MacFarlane
2022-10-29Nightly windows build: use --local-bin-path to place binary.John MacFarlane
2022-10-28Use skylighting 0.13.1.1John MacFarlane
2022-10-28stack.yaml: use dev version of citeproc.John MacFarlane
2022-10-28CI: add ghc 9.4.2.John MacFarlane
2022-10-28Print starting server message to stderr instead of stdout.John MacFarlane
2022-10-28Issue message when starting up server indicating the port.John MacFarlane
2022-10-28Use ghc4pandoc 9.4.2 docker image.John MacFarlane
2022-10-27Don't fail on inline metadata beginning with newline.John MacFarlane
Closes #8358.
2022-10-27Fix test for template marshaling.Albert Krewinkel
2022-10-27Lua: allow strings in place of compiled templates.Albert Krewinkel
This allows to use a string as parameter to `pandoc.template.apply` and in the WriterOptions `template` field. Closes: #8321
2022-10-27T.P.Writers.Shared `toTableOfContents`: handle nested Divs better.John MacFarlane
Closes #8402.
2022-10-27T.P.PDF: fix papersize on PDF generation via ms.John MacFarlane
We need to set an option in pdfroff in addition to including a macro in the ms file. With this fix, `-Vpapersize=a4` should be sufficient to produce A4 PDF via ms. Closes #8403.
2022-10-26LaTeX reader: fix TEXINPUTS handling.John MacFarlane
If TEXINPUTS ends with `:`, then the system default TEXINPUTS is added. We handle this by just adding the working directory in this case. Closes #8392.
2022-10-26ICML writer: use Contents element for images with raw data...John MacFarlane
instead of a link with a data: uri. Closes #8398.
2022-10-26Move aeson constraint from cabal.project to pandoc.cabal.John MacFarlane
2022-10-25Use latest dev citeproc.John MacFarlane
This will raise an error if we have multiple layout elements in a bibliography or citation element.