Commit Graph
17835 Commits
Author SHA1 Message Date
John MacFarlane dc9ae13a7a Fix stack.yaml. 2024-10-22 13:13:24 -07:00
John MacFarlane afda8b8e45 Update stack.yaml for typst-symbols 2024-10-22 10:38:48 -07:00
John MacFarlane 959496586d Update typst tests for math symbol changes. 2024-10-22 10:12:23 -07:00
John MacFarlane 71d73f8da4 PDF via LaTeX: always do max runs if toc is present.
Closes #10308.

The old method (checking to see if toc hash had changed) is not
completely reliable; there are cases where an additional run is
needed anyway to get the correct "logical" page
numbers (especially when different pagination is used for
front matter). See #10308 for an example.
2024-10-22 09:12:12 -07:00
John MacFarlane 79dfe1a66e Use latest typst-hs 2024-10-22 09:07:06 -07:00
John MacFarlane 7bab383570 Use dev texmath 2024-10-22 08:30:20 -07:00
John MacFarlane 7330ad5a3c PDF: use .source extension, not .html, in toPdfViaTempFile.
See #10314.
2024-10-21 20:27:51 -07:00
John MacFarlane 3833a9d27e ConTeXt template: ensure that font names don't wrap.
Closes #10305.
2024-10-21 20:22:58 -07:00
John MacFarlane 352202511f Use latest typst-hs.
Closes #10320.
2024-10-21 19:39:24 -07:00
John MacFarlane 430628ac0b Typst reader: avoid generating empty paragraphs. 2024-10-21 19:11:42 -07:00
John MacFarlane a67584adef Typst reader: fix #quote attribution.
If attribution is not present, don't print the `--`.

See #10320.
2024-10-21 18:52:50 -07:00
John MacFarlane 461f7607aa Typst reader: Fix typo in unicode code point for em dash.
This affects attributions in quote blocks.
See #10320.
2024-10-21 18:45:16 -07:00
John MacFarlane b21b7aeeb8 Issue warnings for duplicate YAML metadata keys.
Text.Pandoc.Logging: add YamlWarning constructor to LogMessage
[API change].

Closes #10312.
2024-10-21 11:16:21 -07:00
John MacFarlane 3dee7b56d8 Clarify that --variable can only assign string values.
See #10298.
2024-10-17 08:57:21 -07:00
John MacFarlane d1063860af Fix typo in test case. 2024-10-17 08:43:34 -07:00
John MacFarlane 012d22cd11 RST reader: handle block level substitutions. 2024-10-16 23:49:54 -07:00
John MacFarlane 812b264a92 RST reader: avoid putting metadata in Para.
Create MetaInlines when possible, just as with markdown input.
MetaBlocks is still used when there are multiple paragraphs or
non-paragraph content.

This change also affects field lists.

Closes #7766.
2024-10-15 23:16:11 -07:00
John MacFarlane 019f5d1c9d RST reader: fix linked substitutions.
E.g. `|Python|_`.

Closes #6588.
2024-10-15 11:52:32 -07:00
John MacFarlane 300e18efba RST reader: support inline anchors.
Closes #9196.
2024-10-15 11:25:28 -07:00
John MacFarlane e9e1684c9e RST reader: explicit links define references.
For example, ``Go to `g`_ `g <www.example.com>`_.``
should produce two links to www.example.com.

Closes #5081.
2024-10-15 11:07:20 -07:00
Albert Krewinkel d399943759 Lua: Remove prefixes from Lua type names
Lua type names were inconsistent with regard to the use of prefixes; all
prefixes are removed now, and Lua types now have the same name as the
Haskell types.

The use of app-specific prefixes is suggested by the Lua manual to avoid
collisions. However, this shouldn't be a problem with pandoc, as it
cannot be used as a Lua package.

Closes: #8574
2024-10-14 07:53:12 +02:00
Albert Krewinkel 734227a59d doc/lua-filters.md: document pandoc.List:iter method
List objects have a new function `iter` that returns an iterator
function that returns the next list item on each call.
2024-10-14 07:15:34 +02:00
John MacFarlane c8fda8f4d3 RST reader: Use a new one-pass parsing strategy.
Instead of having an initial pass where we collect reference
definitions, we create links with target `##SUBST##something`
or `##REF##something` or `##NOTE##something`, and resolve these
in a pass over the parsed AST.

This allows us to handle link references that are not at the
top level. Closes #10281.
2024-10-13 15:51:05 -06:00
John MacFarlane 32c1a31f61 Improve bug report template.
Suggest looking at changelog in case of regressions.
2024-10-10 11:00:42 -07:00
John MacFarlane c5bab883ec RST reader: ignore newlines in URL in explicit link.
Closes #10279.
2024-10-09 08:54:27 -07:00
John MacFarlane bdb1172385 Typst writer: make smart extension work.
If `smart` is not enabled, a command in the default template will
disable smartquote substitutions.

When `smart` is enabled, render curly apostrophes as straight
and escape straight apostrophes.

When `smart` is disabled, render curly apostrophes as curly
and don't escape straight apostrophes.

And similarly for quotes, em and en dashes.

This should give more idiomatic typst output, with fewer unnecessary
escapes.

Closes #10271.
2024-10-08 21:58:25 -07:00
John MacFarlane 0b51580e2d MediaWiki reader: Fix parsing of col/rowspan.
Closes #6992.
2024-10-08 20:13:45 -07:00
John MacFarlane 8884214b7f Update MANUAL.txt with information on openxml template.
Supersedes #10274, closes #10273.
2024-10-08 20:13:45 -07:00
Suraj Patil de034b70f8 epub.css: remove background-color (#10264)
With this greyish background color, epubs look bad on a Kindle.
Closes #10263.
2024-10-07 08:00:52 -07:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> e600b3b07f Bump cachix/install-nix-action from 29 to 30 (#10267)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 29 to 30.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v29...v30)

---
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-10-06 22:45:20 -07:00
Pascal Wagler d309413dee MANUAL.txt: fix typo in template syntax (#10265) 2024-10-06 19:46:43 -07:00
John MacFarlane 31e4fabbb2 Changelog - fix typos. pandoc-cli-3.5 3.5 pandoc-server-0.1.0.9 pandoc-lua-engine-0.3.3 2024-10-05 13:36:12 -07:00
John MacFarlane 9f78ad0679 Update AUTHORS. 2024-10-05 12:55:53 -07:00
John MacFarlane abe86835e1 Depend on latest pandoc-lua-marshall. 2024-10-05 12:45:40 -07:00
John MacFarlane a0b4c319ae Rebuild man pages. 2024-10-05 12:42:53 -07:00
John MacFarlane c7ef045c31 Update changelog. 2024-10-05 12:42:28 -07:00
John MacFarlane 0345e140bc Bump version of pandoc-server to 0.1.0.9. 2024-10-05 12:42:20 -07:00
John MacFarlane 8ff24ec4e4 Bump pandoc-lua-engine to 0.3.3. 2024-10-05 12:42:08 -07:00
John MacFarlane 39b2845c7f Bump version of pandoc and pandoc-cli to 3.5. 2024-10-05 12:41:54 -07:00
John MacFarlane cf9dd9c539 Change date on manual. 2024-10-05 12:41:31 -07:00
John MacFarlane 70b2c5f3a9 T.P.SelfContained: improve handling of links to remote CSS.
Previously these were only converted to a `<style>` element
if the link was being served with a text/css mime type (not
e.g. text/plain).  We now add a secondary check for `rel="stylesheet"`
to better handle such cases.

Closes #10261.
2024-10-05 09:31:41 -07:00
John MacFarlane 50007f0273 Use latest releases of commonmark, commonmark-pandoc. 2024-10-05 09:31:29 -07:00
John MacFarlane a913bf662f Use latest releases of texmath, djot. 2024-10-04 19:16:20 -07:00
John MacFarlane 93d745742d Docx reader: reset lists after headers in same list numId.
Headings in docx, even ones that do not have a visible number,
can have a numId, and in odd cases can even share a numId with
a list that continues after the header. In this case the list
numbering should be reset by the header.

To accomplish this, we add a Heading constructor to BodyPart and
include on it all the information list items have.

Closes #10258.
2024-10-03 22:21:59 -07:00
John MacFarlane a2dfda0dd0 Clarifying text about use of beamerarticle variable.
Closes #10250.
2024-10-01 12:38:49 -07:00
Thomas Hodgson dbc80f9745 Support short title, author, etc. in Beamer (#10244)
+ Add `shorttitle`, `shortsubtitle`, `shortauthor`, `shortinstitute`, `shortdate`
   to default.beamer.
+ Note that the brackets are inside conditionals, because some older beamer
    versions don't allow the empty optional argument.

Closes #10248.
2024-10-01 12:29:44 -07:00
Thomas Hodgson f2b1de5397 Make --number-sections work with beamer (#10245)
+ Remove section numbering code from common.latex
+ Add section numbering to default.latex
+ Add logic for numbering sections in default.beamer. I moved the template setting
   code to where other beamer templates are set. This makes the section-titles and
   numbersections variables independent.

This should make --number-sections work with beamer.
2024-10-01 12:26:28 -07:00
Thomas Hodgson e583ab7970 Support a list of images for titlegraphic (#10246)
Allow a list of title graphics in default.beamer
Title graphic options will be applied to each title graphic.
Images will be separated by `\enspace`.
2024-10-01 11:07:13 -07:00
John MacFarlane 4211efaad1 Remove unnecessary import. 2024-10-01 11:04:31 -07:00
Thomas Hodgson 3ba968292b Beamer theme options (#10243)
Add theme options to default.beamer: `colorthemeoptions`, `fontthemeoptions`,
`innerthemeoptions`, `outerthemeoptions`.
2024-10-01 11:02:43 -07:00