Commit Graph
17835 Commits
Author SHA1 Message Date
John MacFarlane a22bac2361 shell.nix - comment out things that break CI. 2024-03-17 18:28:39 -07:00
John MacFarlane 98d65232b9 Use djot 0.1.1.3 2024-03-17 18:19:40 -07:00
John MacFarlane 660823e2ec Typst writer: only use explicit figure 'kind' for tables.
The rest of the time the autodetection should work fine.
2024-03-17 15:46:17 -07:00
John MacFarlane 2c5d66cb5c Typst writer: use kind: image for image figures. 2024-03-17 11:39:32 -07:00
John MacFarlane a6392207fc Typst writer: avoid unnecessary box around image in figure.
See #9236.
2024-03-17 11:29:25 -07:00
John MacFarlane 9ae7557ac0 Typst writer: omit width/height in images unless explicitly specified.
Previously we computed width/heigth for images that didn't have
size information, because otherwise typst would expand the image
to fit page width. This typst behavior has changed in 0.11.
This change fixes a bug in which images would sometimes overflow
page margins, depending on their intrinsic size.

Closes #9236.
2024-03-17 10:59:47 -07:00
John MacFarlane 2514ad2531 Typst template: set table inset globally. 2024-03-16 10:26:14 -07:00
John MacFarlane ea3719818b Typst writer: don't add inset to tables.
This hardcoded `inset` prevented global customizations in
a template.

Closes #9580.
2024-03-16 10:26:14 -07:00
standstaff ad1e979c92 Typos: remove repeated words (#9577)
Signed-off-by: standstaff <zhengxingru@yeah.net>
2024-03-15 10:38:16 -07:00
John MacFarlane b617992cc9 stack.yaml: add toml-parser. 2024-03-14 22:03:13 -07:00
John MacFarlane 406d022e17 Update AUTHORS.md. 2024-03-14 17:08:58 -07:00
John MacFarlane 919f1117b4 Update README.md 2024-03-14 17:04:16 -07:00
John MacFarlane ffa973ba7e Updaet man pages. 2024-03-14 16:55:46 -07:00
John MacFarlane c08365ed5d Bump pandoc-cli version to 3.1.12.3, require pandoc 3.1.12.3. 2024-03-14 16:50:54 -07:00
John MacFarlane e61ae033b9 Update manual date. 2024-03-14 13:51:28 -07:00
John MacFarlane 27827ac721 Bump to 3.1.12.3, update changelog. 2024-03-14 13:51:05 -07:00
John MacFarlane 9208e24cb3 Depend on released skylighting, typst, texmath 2024-03-14 13:49:51 -07:00
John MacFarlane 95661b6a05 Markdown reader: Fix bug with footnotes at end of fenced div.
Cloess #9576.
2024-03-14 11:04:26 -07:00
John MacFarlane 876bd49786 Typst writer: add 'kind' parameter to figures.
This helps to distinguish tables from other figures for
purposes of labeling and numbering.

Closes #9574.
2024-03-14 10:16:51 -07:00
John MacFarlane b2b04a2f1c Use djot 0.1.1.2, update tests.
djot 0.1.1.1 was horribly buggy and dropped content after lists.
2024-03-14 10:11:04 -07:00
John MacFarlane b03b0ed655 cabal.project: add comment about updating typst-hs. 2024-03-13 11:16:19 -07:00
John MacFarlane 5f01d358d4 cabal.project: Add a note on skylighting updates. 2024-03-13 10:20:16 -07:00
John MacFarlane 7e4569d196 Change broken link to IDML cookbook.
Closes #9563.

See https://community.adobe.com/t5/indesign-discussions/where-is-the-idml-specification/m-p/13170191#M490678
on the state of documentation.
2024-03-13 08:34:15 -07:00
John MacFarlane 32280fd919 Use latest commonmark, commonmark-extensions.
This fixes a 3.12 regression in parsing of commonmark/gfm autolinks
(jgm/commonmark-hs#151).
2024-03-11 11:11:22 -07:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 9c8ba48fb1 Bump cachix/install-nix-action from 25 to 26 (#9557)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 25 to 26.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v25...v26)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  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>
2024-03-11 10:07:48 -07:00
John MacFarlane 69eab3fce5 Fix test for #9555. 2024-03-10 11:42:40 -07:00
John MacFarlane 812f82ab09 LaTeX reader: improve tokenization of @.
Make tokenization sensitive to `\makeatletter`/`\makeatother`.
Previously we just always treated `@` as a letter.  This led
to bad results, e.g. with the sequence `\@`.  E.g.,
`a\@ b` would parse as "ab" and `a\@b` as "a".

Closes #9555.
2024-03-10 11:14:41 -07:00
John MacFarlane 626ffd74b4 LaTeX reader: Make withRaw work inside parseFromToks.
This is needed for raw environments to work inside table cells.

Closes #9517.
2024-03-09 12:53:13 -08:00
John MacFarlane eca9ad1009 Use dev version of doclayout. 2024-03-09 08:52:52 -08:00
John MacFarlane b15e938304 Use latest zip-archive release. 2024-03-09 08:50:09 -08:00
Oliver Fabel f20f74512c Fix block headings support for unnumbered paragraphs (#9542)
`block-headings: true` seems to break unnumbered paragraphs and subparagraphs. This is due to the fact, that the unnumbered version uses the star macros \paragraph* and \subparagraph*. See issue #6018 for details.
2024-03-09 08:46:27 -08:00
John MacFarlane 3d0e2efa88 Depend on dev version of texmath. 2024-03-06 15:08:25 -08:00
John MacFarlane 0ad5684996 Depend on djt 0.1.1.1 2024-03-04 22:38:22 -08:00
John MacFarlane 892bcca2c9 Korean translations: delete colon in translation for 'to'.
This was invalid YAML, and not desired anyway, since a colon
is added.
2024-03-03 10:14:25 -08:00
John MacFarlane 5877ec546d Replace polyfill provider in HTML templates.
The PR replaces polyfill.io with cdnjs.cloudflare.com/polyfill.
polyfill.io has been acquired by Funnull, and the service has
become unstable.

This is essentially a cleaned up version of PR #2384 by @SukkaW;
see the PR for more information.
2024-03-01 08:46:10 -08:00
John MacFarlane 2549d34315 Update man pages. 3.1.12.2 pandoc-cli-3.1.12.2 2024-02-29 20:33:50 -08:00
John MacFarlane 75cb36ade8 Bump to 3.1.12.2 (also pandoc-cli), update changelog, manual date. 2024-02-29 20:33:12 -08:00
John MacFarlane 79567bf7f4 Depend on released djot 0.1.1.0 2024-02-29 20:24:46 -08:00
John MacFarlane 67fa6cda5c SelfContained: add role="img" to svgs.
This is needed in conjunction with `aria-label` for screen
readers. Completes the fix to #9525.
2024-02-29 12:48:27 -08:00
John MacFarlane 85b3ac3ee1 SelfContained: Add aria-label to svg elements.
Screen readers don't seem to pay attention to an alt attribute on
svg.  But they do read the aria-label. So if there's an alt
attribute, we copy its contents to aria-label, unless there is
already an aria-label. This will make pandoc's output with
`--embed-resources` more accessible.

Closes #9525.
2024-02-29 12:08:02 -08:00
John MacFarlane 6c88c39c6d Docx writer: don't copy over footnotePr in settings.xml...
rom reference.docx. Closes #9522.
2024-02-28 22:34:04 -08:00
John MacFarlane cd460ec9c7 Fix regression in section numbering.
Starting with pandoc 3.1.12, unnumbered sections incremented
the section number.

Closes #9516.
2024-02-28 11:31:05 -08:00
John MacFarlane 87b07c699a Docx reader: ensure that table captions are counted.
Normally these occur outside the table element itself, but they
should still be parsed as captions in this case.

Closes #9518.
2024-02-28 10:05:15 -08:00
John MacFarlane 6f87c9e29a Docx reader: detect caption by style name not id.
The styleId can change depending on the localization.

Partially resolves #9518.
2024-02-28 10:04:31 -08:00
John MacFarlane b4e4da62a3 Docx reader: avoid emitting empty paragraph where caption was. 2024-02-28 10:04:06 -08:00
John MacFarlane e925467328 Use commonmark-extensions 0.2.5.3 2024-02-27 22:06:58 -08:00
John MacFarlane 8c9e1dbe0c Use released skylighting-format-blaze-html 2024-02-27 21:09:23 -08:00
John MacFarlane 4ca2de1715 Update test suite for latest skylighting-format-blaze-html. 2024-02-27 20:02:52 -08:00
John MacFarlane 7504bf459c Use latest skylighting-format-blaze-html.
Closes #9520, fixing auto-wrapping of long source lines
in HTML print media.
2024-02-27 19:56:31 -08:00
John MacFarlane 23337fe9dc Makefile: improve epub-validation target.
Use `--epub-cover-image` to catch issues that only arise with that.
See #9493.
2024-02-22 23:12:15 -06:00