aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-12-17Textile reader: improve parsing of spans.issue9878John MacFarlane
The span needs to be separated from its surroundings by spaces. Also, a span can have attributes, which we now attach. Closes #9878.
2024-12-17Textile reader: inline constructors don't trigger if closer...John MacFarlane
...is preceded by whitespace. Closes #10414.
2024-12-17LaTeX writer: use displayquote for block quotes with csquotes.John MacFarlane
Closes #10456.
2024-12-17Typst writer: properly handle data: URIs in images.John MacFarlane
We need to produce an svg tag and parse it using `image.decode`. This is slightly roundabout but doesn't require any external libraries. Closes #10460.
2024-12-17Docx writer: use styleIds not styleNames for Title, Subtitle, etc.John MacFarlane
This change affects the default openxml template as well as the OpenXML writer. Closes #10282 (regression introduced in pandoc 3.5).
2024-12-17Text.Pandoc.PDF: fix temp file extension in `toPdfViaTempFile`.John MacFarlane
We used to set this to `.html`, but this seemed inappropriate once we started using this function for `--pdf-engine=typst`. So we changed it in pandoc 3.6 to `.source`. But apparently `wkhtmltopdf` needs it to be `.html`. So now we have added a parameter to `toPdfViaTempFile` that allows the extension to be specified. Closes #10468.
2024-12-17Move nocites from LaTeX preamble to body (#10465)Thomas Hodgson
Closes #10461. Putting `\nocite` in the preamble works only with biblatex.
2024-12-14Use lastMay instead of reverseJoseph C. Sible
2024-12-14Store a function instead of a BooleanJoseph C. Sible
Instead of storing isDisplay and then always choosing displayMath or math based on that, just store displayMath or math directly.
2024-12-14Use <$> instead of >>= and returnJoseph C. Sible
2024-12-14Put the length in the range expression instead of calling take laterJoseph C. Sible
2024-12-14Remove redundant null checkJoseph C. Sible
"all f []" is always true, so "null xs || all f xs" can be simplified to just "all f xs".
2024-12-14Use the definition of unsnoc from baseJoseph C. Sible
This is more efficient than the existing one.
2024-12-14Use catMaybes instead of building with maybe and (:) one element at a timeJoseph C. Sible
2024-12-14Remove several unnecessary layers of indirection from refsJoseph C. Sible
2024-12-11Allow YAML bibliographies to be arrays of references.John MacFarlane
Previously, they had to be YAML objects with a `references` key. Closes #10452.
2024-12-11Cosmetic code improvement.John MacFarlane
2024-12-11Depend on citeproc 0.8.1.2.John MacFarlane
2024-12-10Use dev version of citeproc.John MacFarlane
Closes #10451.
2024-12-10stack.yaml: Switch to stackage resolver lts-23.0Albert Krewinkel
2024-12-10Lua: support more elements as input to `pandoc.utils.stringify`.Albert Krewinkel
Elements of type Caption, Cell, TableHead, and TableFoot can now be stringified. Fixes: #10450
2024-12-10Lua: add `Caption` constructor to `pandoc` module.Albert Krewinkel
2024-12-10doc/lua-filters.md: Fix links to constructors.Albert Krewinkel
This was broken when the respective sections started to be autogenerated.
2024-12-09Add silby to funding.John MacFarlane
2024-12-07Minor tweaks to changelog formatting.John MacFarlane
2024-12-07stack.yaml - add crypton-x509-validationpandoc-server-0.1.0.10pandoc-lua-engine-0.4pandoc-cli-3.63.6John MacFarlane
2024-12-07Add to AUTHORS.md.John MacFarlane
2024-12-07stack.yaml - use more recent versions of tls, crypton-connectionJohn MacFarlane
2024-12-07Add copyright info to two modules missing it.John MacFarlane
2024-12-07Regenerate README.mdJohn MacFarlane
2024-12-07Changelog tweaks.John MacFarlane
2024-12-07Date manual and regenerate man pages.John MacFarlane
2024-12-07Depend on new releases of commonmark-extensions, commonmark-pandoc.John MacFarlane
2024-12-07Depend on released skylighting, skylighting-core 0.14.4.John MacFarlane
2024-12-07Depend on skylighting-format-blaze-html 0.1.1.3.John MacFarlane
2024-12-07update stack.yaml.John MacFarlane
2024-12-07Depend on typst 0.6.1John MacFarlane
2024-12-07Depend on released pandoc-lua-marshal 0.3.0.John MacFarlane
2024-12-07Depend on texmath 0.12.8.12John MacFarlane
2024-12-07Bump pandoc-lua-engine to 0.4 and depend on it in pandoc-cli.John MacFarlane
2024-12-07Bump pandoc-cli to 0.6, depend on pandoc 0.6.John MacFarlane
2024-12-07Bump pandoc-server version to 0.1.0.10John MacFarlane
2024-12-07Bump to 3.6, update changelog.John MacFarlane
2024-12-07Stylistic tweak.John MacFarlane
2024-12-07Ensure that `--sandbox` affects `--embed-resources`.John MacFarlane
Previously it did not (contrary to what was implied by the manual), which means that an image with URL `/etc/passwd` would leak an encoded version of that file to HTML output with `--self-contained` or `--embed-resources`, even if `--sandbox` was used. Thanks to Samuel Mortenson for pointing out the issue.
2024-12-07T.P.App.OutputSettings: add `sandbox'` function.John MacFarlane
This computes the sandboxed files from Opt and avoids some code repetition in T.P.App and T.P.App.OutputSettings.
2024-12-07Docx reader: handle `\b`, `\i`, `\y` modifiers in `XE` index entries.John MacFarlane
See #10171.
2024-12-07HTML reader: parse footnotes defined by dpub-aria roles.John MacFarlane
Closes #5294.
2024-12-05List mdoc as a reader format in the manualEvan Silberman
2024-12-05Add mdoc readerEvan Silberman
This change introduces a reader for mdoc, a roff-derived semantic markup language for manual pages. The two relevant contemporary implementations of mdoc for manual pages are mandoc (https://mandoc.bsd.lv/), which implements the language from scratch in C, and groff (https://www.gnu.org/software/groff/), which implements it as roff macros. mdoc has a lot of semantics specific to technical manuals that aren't representable in Pandoc's AST. I've taken a cue from the mandoc HTML output and many mdoc elements are encoded as Codes or Spans with classes named for the mdoc macro that produced them. Much like web browsers with HTML, mandoc attempts to produce best-effort output given all kinds of weird and crappy mdoc input. Part of the reason it's able to do this is it uses a very accommodating parse tree and stateful output routines specialized to the output mode, and when it encounters some macro it wasn't expecting, it can easily give up on whatever it was outputting and output something else. I've encoded as much flexibility as I reasonably could into the mdoc reader here, but I don't know how to be as flexible as mandoc. This branch has been developed almost exclusively against mandoc's documentation and implementation of mdoc as a reference, and the real-world manual pages tested against are those from the OpenBSD base system. Of ~3500 manuals in mdoc format shipped with a fresh OpenBSD install, 17 cause the mdoc reader to exit with a parse error. Any further chasing of edge cases is deferred to future work. Many of the tests in test/Tests/Readers/Mdoc.hs are derived directly from mandoc's extensive regression tests. [API change] Adds readMdoc to the public API