Commit Graph
18431 Commits
Author SHA1 Message Date
John MacFarlane 92d2affbee Small addition to release checklist. pandoc-lua-engine-0.5 pandoc-server-0.1.1 pandoc-cli-3.8 3.8 2025-09-06 23:50:09 +02:00
John MacFarlane 373ba8e176 macos package: use direct paths for notarytool, staple. 2025-09-06 23:29:10 +02:00
John MacFarlane 4edbd0a88c Remove commented out lines from macos/Makefile. 2025-09-06 23:26:20 +02:00
John MacFarlane a4502c43b5 Update AUTHORS.md. 2025-09-06 20:57:33 +02:00
John MacFarlane 149c812e6a Document the last change (refs with citeproc) in manual. 2025-09-06 20:01:32 +02:00
John MacFarlane 8aa665a33d Citeproc: put bibliography in a div with id .*__refs
as well as `refs`.  Reason: when `--file-scope` is used, a Div
with id `refs` gets a prefix attached, derived from the filename.
The prefix ends in `__`.

Closes #11072.
2025-09-06 19:54:00 +02:00
John MacFarlane 5328d4f9d0 Fix date in manual and man pages and changelog. 2025-09-06 18:11:42 +02:00
John MacFarlane e5f5a85919 Allow time 1.15 2025-09-06 18:10:21 +02:00
John MacFarlane 812e8c6854 stack.yaml - use lts-24.9 2025-09-06 17:57:36 +02:00
John MacFarlane f4eb08e37a Fix spacing errors. 2025-09-06 17:48:09 +02:00
John MacFarlane bdc55f6fe1 pandoc-server - bump to 0.1.1, change pandoc version bounds. 2025-09-06 11:05:33 +02:00
John MacFarlane 69709e1b1d Bump pandoc-lua-engine to 0.5. 2025-09-06 11:03:42 +02:00
John MacFarlane ede7128ea5 pandoc-lua-engine: change pandoc dependency bounds. 2025-09-06 10:59:05 +02:00
John MacFarlane 7b0a14f101 Bump to 3.8, update changelog. 2025-09-06 10:55:03 +02:00
John MacFarlane 4eeb322028 Use skylighting 0.14.7 2025-09-06 10:48:22 +02:00
John MacFarlane 536d548335 Docx reader: better handling of AlternateContent.
This revises the solution to #9214 in commit 2e8ecb3 in order to
handle a standard Word way of inserting emojis.

Closes #11113.
2025-09-06 10:48:22 +02:00
John MacFarlane 1e7138823b Partially undo commit 2e8ecb3.
This was too heavy-handed a fix, and it interferes with processing
Word emojis (#11109).
2025-09-06 10:48:22 +02:00
Albert Krewinkel 204ea63107 doc/lua-filters.md: remove outdated notes about lpeg/re globals.
The globals hold the same values that are returned by `require 'lpeg'`
and `require 're'`, respectively. This was changed in pandoc 3.3.
2025-09-04 16:40:07 +02:00
John MacFarlane 226f765e76 Revision of query/fragment dropping fix to #11021. 2025-09-04 13:32:05 +02:00
John MacFarlane ad77315d22 Bump version bound for citeproc in pandoc-lua-engine. 2025-09-04 12:23:53 +02:00
John MacFarlane 42d5b57026 Used released typst 0.8.0.2 2025-09-03 23:40:15 +02:00
John MacFarlane 57fe93c6ba Use released texmath 0.13 2025-09-03 21:50:41 +02:00
John MacFarlane 9867a3d9c4 Use released citeproc-0.10 2025-09-03 21:30:11 +02:00
John MacFarlane 682e82ce21 Use released doclayout 0.5.0.1 2025-09-03 19:47:08 +02:00
John MacFarlane 0dc31a470f Fix test case that changed because of addition of nocase span. 2025-09-03 18:06:27 +02:00
John MacFarlane 037a6e81e2 T.P.Citeproc.BibTeX: Protect case in periodical titles.
Thus, for example, `{npj} Quantum Information` should translate as
`[npj]{.nocase} Quantum Information`.

Closes #11048.
2025-09-03 12:56:58 +02:00
John MacFarlane 6727d2d177 T.P.SelfContained: try fetching relative resources...
...without query or fragment if the original fetch fails.

This provides a fix for #1477 in a way that doesn't raise the
problems mentioned in #11021.
2025-09-03 09:39:27 +02:00
Albert Krewinkel e0acb24528 Refactor highlighting options [API Change]
A new command line option `--syntax-highlighting` is provided; it takes
the values `none`, `default`, `idiomatic`, a style name, or a path to a
theme file. It replaces the `--no-highlighting`, `--highlighting-style`,
and `--listings` options.

The `writerListings` and `writerHighlightStyle` fields of the
`WriterOptions` type are replaced with `writerHighlightStyle`.

Closes: #10525
2025-09-02 17:50:47 +02:00
Albert Krewinkel 64757254ab T.P.Options: add type HighlightMethod and patterns [API Change]
The Text.Pandoc.Options module exports the `HighlightMethod` data type
and it's constructors. Furthermore, three pattern synonyms are exported,
`NoHighlightingString`, `DefaultHighlightingString`, and
`IdiomaticHighlightingString`, which hold the string value that's used
for decoding and encoding of HighlightMethod values.
2025-09-02 17:50:47 +02:00
Albert Krewinkel 3a298067ae T.P.Highlighting: export defaultStyle [API Change]
This allows to be more explicit about using a default style, and
providing a single point of truth for its value. The variable is an
alias for `pygments`.
2025-09-02 17:50:47 +02:00
TuongNM 3e2c029a77 RST Reader: Support multiple header rows (#11057)
[API change] Text.Pandoc.Parsing: `tableWith` and `tableWith'` now
return a list of lists of Blocks, rather than a list of Blocks, for the
header rows, allowing for multiple header rows.

Closes #10338.
2025-09-02 13:12:34 +02:00
John MacFarlane f3c7a931b4 Update default.csl from new chicago-author-date.csl. 2025-09-02 12:42:16 +02:00
John MacFarlane 65c698a5bb Use latest dev citeproc. 2025-09-02 11:26:10 +02:00
John MacFarlane 22ff5a8909 Use latest dev citeproc. 2025-09-02 11:02:03 +02:00
John MacFarlane 0cdb430110 LaTeX template: don't emit empty linkcolor= in hypersetup.
Closes #11098.
2025-09-02 09:39:39 +02:00
Christopher T. Kenny 6070ad29cd Add features to typst base template (take 2).
New template variables supported: `thanks`, `abstract-title`, `linestretch`, `mathfont`, 
`codefont`, `linkcolor`, `filecolor`, `citecolor`.

Closes #9956, #11076.

(This is a new version of f000fa168b which
was reverted.)
2025-09-02 09:25:39 +02:00
John MacFarlane 3551e21206 makePDF: automatically embed resources from media bag in HTML...
before trying to convert it with weasyprint, etc. This will give
better results when converting from formats like .docx.

Closes #11099.
2025-09-02 09:08:47 +02:00
John MacFarlane 4d545b69fe Change latex-pos to latex-placement. 2025-09-02 08:39:47 +02:00
Sean Soon 5424d3eca0 LaTeX writer: control figure placement with attribute (#11094)
If a `latex-pos` attribute is present on a figure, it will be used as the
optional positioning hint in LaTeX (e.g. `ht`).

With implicit figures, `latex-pos` will be added to the figure (and
removed from the image)  if it is present on the image.

Closes #10369.
2025-09-01 20:41:14 +02:00
John MacFarlane c74f2b8588 Use dev typst-hs. 2025-08-30 12:59:56 +02:00
John MacFarlane 8d7aed2355 Typst reader: fix addition of image path prefix to use posix separator. 2025-08-30 10:58:19 +02:00
John MacFarlane f865b3bc4b Typst reader: properly resolve image paths in included files.
Closes #11090.
2025-08-30 00:04:23 +02:00
Repetitive 729c12394c fix: recognize binary signatures and fail early
Fail early when receiving binary input with recognized signature:
- zip[-based]: including OpenDocument and Microsoft formats
- PDF
- CFBF-based: old Microsoft formats including .doc and .xls
- DjVu
2025-08-28 21:15:36 +02:00
John MacFarlane 1bf2564b5c Raise unknown reader error for ods, odp, odf, xls, xslx, zip extensions 2025-08-27 14:27:01 +02:00
John MacFarlane 73b5908825 Add TODO comment. 2025-08-27 13:26:33 +02:00
John MacFarlane 27851bbe9d LaTeX writer: include cancel package only if needed.
That is, only if there is math that contains `\cancel`,
`\bcancel`, or `\xcancel`.
2025-08-27 13:09:07 +02:00
John MacFarlane 1882f0088a Use latest dev texmath. 2025-08-27 13:09:07 +02:00
Albert Krewinkel 01721c0960 Org reader: improve sub- and superscript parsing.
Sub- and superscript must be preceded by a string in Org mode. Some text
preceded by space or at the start of a paragraph was previously parsed
incorrectly as sub- or superscript.
2025-08-27 13:03:46 +02:00
John MacFarlane 6cff8dfc8a HTML reader: don't drop the initial newline in a pre element.
Closes #11064.
2025-08-26 18:57:14 +02:00
Tuong Nguyen Manh 01f97ed55d Typst Writer: Check XID_Continue in identifiers
Add unicode-data dependency for isXIDContinue for this to match the
rust implementation.
Also apply hlint suggestions for redundant $, literal pattern and
moving brackets to avoid $.
2025-08-26 18:25:08 +02:00