18592 Commits
Author SHA1 Message Date
John MacFarlane 568dab1453 Add new authors. pandoc-lua-engine-0.5.0.2 3.8.3 pandoc-cli-3.8.3 2025-12-01 09:48:34 +01:00
John MacFarlane 7ff2ead417 Regenerate man pages. 2025-12-01 09:46:49 +01:00
John MacFarlane c9a741b4bd Fix spacing issue. 2025-12-01 09:45:44 +01:00
John MacFarlane d3a013e580 Regenerate README.md 2025-12-01 09:45:41 +01:00
John MacFarlane 867686b554 pandoc-lua-engine: bump to 0.5.0.2. 2025-12-01 09:38:08 +01:00
John MacFarlane 23b1aa788a Update changelog. 2025-12-01 09:36:26 +01:00
John MacFarlane a2c8aef1cb Bump to 3.8.3 (pandoc, pandoc-cli)> 2025-12-01 09:36:10 +01:00
John MacFarlane 6b20a1eabb Update manual date and man pages. 2025-12-01 00:34:59 +01:00
John MacFarlane 48badd2073 pandoc-lua-engine: allow citeproc 0.12. 2025-11-30 18:05:49 +01:00
John MacFarlane 4bdb4550c2 Use released asciidoc 0.1. 2025-11-30 17:57:08 +01:00
John MacFarlane b22eaa6939 Use released djot 0.1.2.4. 2025-11-30 17:43:30 +01:00
John MacFarlane 7e2bd987ae Use released texmath 0.13.0.2. 2025-11-30 17:41:56 +01:00
John MacFarlane d6a6332729 CI: fail fast. 2025-11-30 17:26:28 +01:00
John MacFarlane 847e7d566f Use released typst 0.8.1. 2025-11-30 17:25:05 +01:00
John MacFarlane 564e275008 Use released citeproc 0.12. 2025-11-30 16:58:20 +01:00
Ezwal fc07b06851 Docx reader: Handle REF link instruction (#11296)
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-30 13:49:58 +01:00
Asliddinbek Azizovich 094061d946 Add reveal.js scroll view option to HTML writer (#11305)
* Add revealjs `scroll` view option to HTML writer
* Add `scrollSnap` option into default.revealjs

Closes #10052
2025-11-30 13:45:36 +01:00
John MacFarlane 1dcb984453 Clean up implicit_figure documentation.
Explain how to specify alt text.

See #11082.
2025-11-30 13:31:17 +01:00
John MacFarlane 66cbd2471f Give long form of option as well as short.
See #11306.
2025-11-30 13:20:39 +01:00
Tuong Nguyen Manh 58e741a0d6 ANSI writer: Apply row spans in tables (#11294)
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-30 13:20:30 +01:00
Tuong Nguyen Manh 6592dfb082 pptx writer: Handle reference doc without slides (#11310)
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-30 13:17:34 +01:00
John MacFarlane 176d9be0f3 Change message for missing HTML title warning.
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-30 12:22:56 +01:00
John MacFarlane af9443a981 RST reader: correctly handle intraword emphasis.
Closes #11309.
2025-11-30 12:16:40 +01:00
John MacFarlane 37b7bd3b38 Use latest dev asciidoc. 2025-11-30 11:08:32 +01:00
John MacFarlane cc9be5d9cb Make Control.Monad import unqualified.
ghc 9.6+ needs the import of MonadPlus, but previous
versions give a warning.
2025-11-30 10:25:10 +01:00
John MacFarlane 0d8cc2fa8b CI: don't fail fast so we can figure out...
which base versions need MonadPlus imported.
2025-11-29 18:44:53 +01:00
John MacFarlane fc4b6200bb Avoid compiler warning with mplus import. 2025-11-29 17:46:44 +01:00
John MacFarlane 8651ec3c28 Add asciidoc as an input format.
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-29 17:04:42 +01:00
John MacFarlane 525113c31e Fix warning in Docx reader test. 2025-11-24 23:39:59 +01:00
Anton Antich 59b8b3ed4b Add xlsx (Microsoft Excel) as an input format.
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-24 23:10:33 +01:00
Anton Antich ec75b693e5 Support pptx (PowerPoint) as an input format.
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-24 22:37:39 +01:00
dependabot[bot] 5d3b2916d6 Bump actions/checkout from 5 to 6 (#11302)
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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-24 10:48:37 +01:00
John MacFarlane 36b1f73a5d CI: only run CI on main 2025-11-24 10:42:24 +01:00
John MacFarlane fe62b25f49 Use latest dev citeproc. 2025-11-19 21:59:50 +01:00
Albert Krewinkel 4e0f626898 Lua: preserve common state of custom Lua readers
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-19 12:22:41 +01:00
John MacFarlane f162c7a1cd Use latest dev citeproc. 2025-11-18 23:18:30 +01:00
John MacFarlane 97a9088121 Use latest dev typst-hs. 2025-11-18 23:05:04 +01:00
John MacFarlane 28338112ee HTML writer: use 'defer' when including mathjax script.
As recommended in the MathJax docs.

Closes #11292.
2025-11-16 14:17:59 +01:00
James Barlow 7b29962d86 LaTeX writer: make L1-3 headings work inside blockquotes.
Add mbox before all headings (not just L4+) inside blockquotes.
Otherwise LaTeX raises an error.

Closes #11281.
2025-11-12 23:40:15 +01:00
Albert Krewinkel a5576317c9 Docx reader: check recursively for caption styles.
The docx reader uses caption styles to identify figures and captioned
tables. It now checks for known caption styles in the full styles
hierarchy of a paragraph instead of just checking the style directly.
This allows to recognize caption styles that are built on top of the
basic *caption* style, as is sometimes the case in sophisticated styles.
2025-11-12 23:12:01 +01:00
John MacFarlane 1443e7dc8f Use latest dev djoths. 2025-11-10 11:27:12 +01:00
John MacFarlane 5c3144feb8 PDF: avoid converting SVG to PDF when non-TeX PDF engine is used.
This fixes a 3.8 regression, which caused documents with SVGs to
raise an error when converted to PDF using WeasyPrint.

Closes #11275.
2025-11-06 00:12:46 +01:00
John MacFarlane 940c22bc31 LaTeX writer: Remove split from list of math environments.
This fixes #11274.
2025-11-05 17:31:34 +01:00
John MacFarlane 573921cc19 LaTeX reader: revert \linebreak as LineBreak.
`\linebreak` is more of a hint, it shouldn't produce
a hard break.

See #11272.
2025-11-05 12:51:30 +01:00
reptee c660bd3419 Add BBCode writer (#11242)
`bbcode` is now supported as an output format, as well as variants
`bbcode_fluxbb` (FluxBB), `bbcode_phpbb` (phpBB), `bbcode_steam` (Hubzilla),
`bbcode_hubzilla` (Hubzilla), and `bbcode_xenforo` (xenForo).

[API change]
Adds a new module Text.Pandoc.Writers.BBCode, exporting a number of functions.
Also exports `writeBBCode`,  `writeBBCodeSteam`, `writeBBCodeFluxBB`,
`writeBBCodePhpBB`, `writeBBCodeHubzilla`, `writeBBCodeXenforo` from
Text.Pandoc.Writers.
2025-11-05 12:49:46 +01:00
John MacFarlane 018b03638a Update INSTALL.md.
Remove mention of Haskell platform, improve install instructions.
See #11271.
2025-11-04 16:56:32 +01:00
John MacFarlane 814bdbdbef Better handling of \makeatletter in parsing raw LaTeX.
Closes #11270.
2025-11-04 14:30:05 +01:00
John MacFarlane 69479fa490 Revert "Improve parsing of raw LaTeX blocks..."
This reverts commit 22863a3e12.
2025-11-04 14:09:37 +01:00
John MacFarlane 97f7a93460 Add command test for #9953. 2025-11-04 14:08:57 +01:00
John MacFarlane 22863a3e12 Improve parsing of raw LaTeX blocks...
containing macro definitions with `\makeatletter` and `\makeatother`.

Closes #9953, see also #11270.
2025-11-04 14:02:25 +01:00