aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-10-31Text.Pandoc.App: Change `parseOptionsFromArgs` and `parseOptions`...optinfoJohn 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-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.
2022-10-25Use latest dev citeproc.John MacFarlane
2022-10-25Remove type alias WriterProperties.John MacFarlane
I don't think this aids clarity, and anyway it's not exported.
2022-10-25Lua: rename `reader_extensions`/`writer_extensions` globals...John MacFarlane
...as `Extensions`. Update documnetation. Include a custom extension in the documentation example. See #8390.
2022-10-25Use dev version of citeproc.John MacFarlane
2022-10-24Rename T.P.Readers.Odt -> T.P.Readers.ODT.John MacFarlane
For consistency with Writers.ODT. Similarly, rename `readOdt` -> `readODT`. [API change]
2022-10-24Rename T.P.Writers.Docbook -> T.P.Writers.DocBook.John MacFarlane
Similarly, rename `writeDocbook` -> `writeDocBook`, for consistency with the DocBook reader's naming. [API change]
2022-10-24ODT reader: fix relative links.John MacFarlane
ODT adds a `../` to relative links (see #3524); this needs to be removed when converting from ODT.
2022-10-24ODT writer: further refinement to #3524.John MacFarlane
Don't alter the link if the path is empty.
2022-10-24Switch release_candidate workflow to workflow_dispatchJohn MacFarlane
2022-10-24ODT writer:John MacFarlane
Revise commit 9496ce818bfc22cb8e823a04de8f5791fd84c8dd so it doesn't change image links. (These should have already been adjusted.) See #3524.
2022-10-24ODT writer: fix relative links.John MacFarlane
Closes #3524.
2022-10-24Remove sample.lua from data files (#8397)Albert Krewinkel
The file is kept around in the pandoc-lua-engine test-suite. Closes: #8356
2022-10-21LaTeX reader: parse short table caption.John MacFarlane
See jgm/pandoc-types#103. This is not too useful yet, because writers don't do anything with the short caption.
2022-10-21Lua: add pandoc.scaffolding.Writer (#8377)Albert Krewinkel
This can be used to reduce boilerplate in custom writers.
2022-10-20T.P.Lua.Module.Pandoc: Remove `pushModule`.John MacFarlane
This is not used and is not an exported function; it's dead code. @tarleb if there is some reason to keep this here, please feel free to revert this.
2022-10-20Text.Pandoc.Parsing: remove `nested` [API change].John MacFarlane
It was not being used, and in fact it was a bad idea from the beginning, as it had no hope of solving the problem it was introduced to solve.
2022-10-20Makeflie: add hie.yaml target.John MacFarlane
2022-10-20Regenerate hie.yamlJohn MacFarlane