aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-12-06Implement `reset-citation-positions` class on headings.reset-positionJohn MacFarlane
When the `reset-citation-positions` class is added to a top-level heading, `--citeproc` will reset position information at that point in the document. This is needed in order to ensure that the first citation in a chapter to a work that has been cited in a previous chapter will not be in abbreviated form. Requires a dependency on a development version of citeproc.
2025-12-06HTML5 template: conditionally include lang attribute.John MacFarlane
Previously we included it unconditionally, even if this meant giving it an empty value. This seems at best redundant, since the empty value is the default. At worst, it adds clutter and according to some sources may prevent the use of browser defaults. I believe that the justification for including these attributes even with empty values is not a good one; see commit 07d51d9 for the original change. On my reading, the HTML spec does not require the presence of the attribute on the html element; it only says that if the attribute is present, it must have an empty string or valid BCP 47 language tag as its value. See also #11324.
2025-12-05HTML reader: parse inline style elements as RawInline.John MacFarlane
This is a cleaner fix to #10643 than the reverted commit 7fe8c92. Styles are not stripped, but with this change they will not interfere with inline parsing. Closes #11246.
2025-12-05Revert "HTML reader: ignore style tags in the body."John MacFarlane
This reverts commit 7fe8c928212197354196724e9b95b71a854fdca9. See #10643 and #11246.
2025-12-05RST reader: fix definition lists where term ends with `-`.John MacFarlane
This reverts some old code giving special treatment to lines ending in hyphens; I don't understand why it was there, because rst2html does not seem to do this. Closes #11323.
2025-12-05Use latest dev asciidoc.John MacFarlane
2025-12-04Use latest asciidoc.John MacFarlane
2025-12-04Citeproc.BibTeX: Fix typo affecting `jurisdiction` biblatex type.John MacFarlane
Closes #11321.
2025-12-04Fix biblatex parsing of `@commentary` entries.John MacFarlane
Previously they were skippedas comments due to a bug. Closes #11322.
2025-12-04Use dev typst-hsJohn MacFarlane
2025-12-03Use dev asciidoc.John MacFarlane
2025-12-02Texinfo writer: improve handling of certain code blocks.John MacFarlane
MediaWiki, for example, will parse a code block containing formatting as a sequence of Code elements separated by LineBreaks. For this we now use a texinfo example block. Closes #11312.
2025-12-02Fix a few mistakes in the contributing docs. (#11318)har7an
* Fix a typo in the contributing docs. * Fix link to Lua filter docs, so it works on GitHub. (A rewrite rule will ensure that it also works on pandoc.org.) * Update minimum GHC version in contributing docs. * Add a comment in the respective CI file to keep the version up-to-date in the contributing guide.
2025-12-02Typst template: Fix keywords usage. (#11317)har7an
Previously the template turned any `keywords` defined in Pandoc metadata into empty objects due to a misnomer in a loop variable. This in turn was rejected by the Typst compiler as invalid syntax, making document generation with keywords impossible.
2025-12-01Add new authors.pandoc-lua-engine-0.5.0.2pandoc-cli-3.8.33.8.3John MacFarlane
2025-12-01Regenerate man pages.John MacFarlane
2025-12-01Fix spacing issue.John MacFarlane
2025-12-01Regenerate README.mdJohn MacFarlane
2025-12-01pandoc-lua-engine: bump to 0.5.0.2.John MacFarlane
2025-12-01Update changelog.John MacFarlane
2025-12-01Bump to 3.8.3 (pandoc, pandoc-cli)>John MacFarlane
2025-12-01Update manual date and man pages.John MacFarlane
2025-11-30pandoc-lua-engine: allow citeproc 0.12.John MacFarlane
2025-11-30Use released asciidoc 0.1.John MacFarlane
2025-11-30Use released djot 0.1.2.4.John MacFarlane
2025-11-30Use released texmath 0.13.0.2.John MacFarlane
2025-11-30CI: fail fast.John MacFarlane
2025-11-30Use released typst 0.8.1.John MacFarlane
2025-11-30Use released citeproc 0.12.John MacFarlane
2025-11-30Docx reader: Handle REF link instruction (#11296)Ezwal
This PR aims to handle a common run field instruction (fieldInstr) from docx format : REF, specifically those with the "link" switch \h. In word software, you can create REF field instruction with the Cross-reference button. You can create cross-reference to many things such as Equation, Table, Title...
2025-11-30Add reveal.js scroll view option to HTML writer (#11305)Asliddinbek Azizovich
* Add revealjs `scroll` view option to HTML writer * Add `scrollSnap` option into default.revealjs Closes #10052
2025-11-30Clean up `implicit_figure` documentation.John MacFarlane
Explain how to specify alt text. See #11082.
2025-11-30Give long form of option as well as short.John MacFarlane
See #11306.
2025-11-30ANSI writer: Apply row spans in tables (#11294)Tuong Nguyen Manh
The ANSI writer is now able to keep track of row spans and apply them in rows. [API change] T.P.Writers.Shared: Add functions `insertCurrentSpansAtColumn`, `takePreviousSpansAtColumn` and `decrementTrailingRowSpans` for applying and keeping track of RowSpans over multiple rows. Fixes: #10149
2025-11-30pptx writer: Handle reference doc without slides (#11310)Tuong Nguyen Manh
An empty `sldIdLst` is now added if the reference doc is missing one so that `modifySldIdLst` can replace it. To ensure PowerPoint doesn't say that the file will need fixing, the `sldIdLst` has to be placed after the `sldMasterIdLst`. I also added a test to ensure that if there are notes, they will be placed between the `sldMasterIdLst` and `sldIdLst`. Otherwise PowerPoint wouldn't show the slide of a note when viewing Notes Pages. Closes #7536.
2025-11-30Change message for missing HTML title warning.John MacFarlane
Suggest setting the `pagetitle` variable instead of setting `title` in metadata, which also has the effect of adding an h1 element. Closes #11307.
2025-11-30RST reader: correctly handle intraword emphasis.John MacFarlane
Closes #11309.
2025-11-30Use latest dev asciidoc.John MacFarlane
2025-11-30Make Control.Monad import unqualified.John MacFarlane
ghc 9.6+ needs the import of MonadPlus, but previous versions give a warning.
2025-11-29CI: don't fail fast so we can figure out...John MacFarlane
which base versions need MonadPlus imported.
2025-11-29Avoid compiler warning with mplus import.John MacFarlane
2025-11-29Add asciidoc as an input format.John MacFarlane
New exported module Text.Pandoc.Readers.AsciiDoc, exporting readAsciiDoc [API change]. The bulk of parsing is handled by the asciidoc library. Closes #1456.
2025-11-24Fix warning in Docx reader test.John MacFarlane
2025-11-24Add `xlsx` (Microsoft Excel) as an input format.Anton Antich
Each worksheet turns into a section containing a table. The common file `nativeDiff` has been extract from the Docx and Pptx text files and put in Tests.Helpers.
2025-11-24Support pptx (PowerPoint) as an input format.Anton Antich
New module `Text.Pandoc.Readers.Pptx`, exporting `readPptx`. [API change] Factored out some common OOXML functions from Text.Pandoc.Readers.Docx.Util into a non-exported module Text.Pandoc.Readers.OOXML.Shared.
2025-11-24Bump actions/checkout from 5 to 6 (#11302)dependabot[bot]
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-24CI: only run CI on mainJohn MacFarlane
2025-11-19Use latest dev citeproc.John MacFarlane
2025-11-19Lua: preserve common state of custom Lua readersAlbert Krewinkel
The common state is transferred to Lua when calling a custom Lua reader, and is now also transferred back after the reader has finished. This ensures that info messages, warnings, and mediabag entries are available to the main program and all subsequent processing steps.
2025-11-18Use latest dev citeproc.John MacFarlane