Commit Graph
17139 Commits
Author SHA1 Message Date
John MacFarlane bc1caab557 EPUB writer: change default accessibilityFeatures.
Don't include ARIA and MathML in general; they won't apply for
epub2 or documents without math.
2024-01-27 10:57:50 -08:00
John MacFarlane 6fe94a316a make validate-epub - produce HTML ace report in ace subdirectory. 2024-01-27 10:57:27 -08:00
John MacFarlane caa73134bc Regenerate epub tests with latest changes to EPUB reader. 2024-01-27 10:34:00 -08:00
John MacFarlane 8d09c4aff4 EPUB reader: don't put # characters in identifiers. 2024-01-26 23:58:42 -08:00
John MacFarlane ebed209627 Add ace check to validate-epub Makefile target. 2024-01-26 10:48:48 -08:00
John MacFarlane e7b2b2bd8b EPUB writer: Add accessibility metadata to EPUB metadata.
accessModes, accessibilityFeatures, accessibilityHazards.

Reasonable default values are used to ensure that pandoc's
EPUBs conform to the EU Accessibilty Act requirements.

Closes #9372.
2024-01-26 10:45:16 -08:00
John MacFarlane 09b6db8c50 EPUB writer: Add xml:lang to package element.
See #9372.
2024-01-25 10:38:57 -08:00
John MacFarlane d9a70d2eaf Add some kerns where needed between quotes in LaTeX output.
Closes #9371.
2024-01-25 09:41:47 -08:00
John MacFarlane 23f67c8458 Depend on dev commonmark-pandoc. 2024-01-23 16:40:09 -08:00
Gokul Rajiv 254ebeb68b add testcase 2024-01-23 14:13:51 -08:00
Gokul Rajiv e9bd6285e3 add case for "variable" class 2024-01-23 14:13:51 -08:00
John MacFarlane 3e54d3a45d Use reference form (e.g. @jones2000[p. 30]) for citations.
Previously we were using `#cite` and trying to put the supplement
in brackets; but a bracketed supplement only works with the
reference form.
2024-01-22 22:09:01 -08:00
Albert Krewinkel 57774d79e8 Org writer: escape special lines in code blocks
Fixes: #9218
2024-01-22 18:13:34 +01:00
dependabot[bot] 734f860618 build(deps): bump actions/cache from 3 to 4
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-21 19:21:03 -08:00
John MacFarlane 243bbf699c HTML writer: ensure that an alt attribute is added in EPUB output.
This seems to be required by iBooks; even an empty alt attribute
will satisfy it. Closes #9354.
2024-01-20 10:34:32 -08:00
John MacFarlane f43ffabd3c LaTeX writer: create valid table even when table is empty.
Closes #9350.
2024-01-20 10:19:32 -08:00
Albert Krewinkel c2f7f5c63f Custom writers: fix handling of common state
The CommonState (`PANDOC_STATE` in Lua) may change between the time that
a custom writer script is first loaded and when the writer is run.
However, the writer was always using the initial state, which led to
problems, e.g. when the mediabag was updated in a filter, as those
updates where not visible to the writer.

The state is now updated right before the writer function runs.

Fixes: #9229
2024-01-20 10:14:48 -08:00
Max Heller 74f4ae25d2 LaTeX writer: set font fallback for babel main font 2024-01-20 09:47:12 -08:00
John MacFarlane 40f84c841c Document font fallback variables. 2024-01-19 17:49:04 -08:00
lawcho 0110f59053 LaTeX template: support font fallback
* LuaLaTeX-specific (uses luaotfload)
* Configured in YAML metadata
* Sans/main/mono fonts have separate fallback chains
2024-01-19 17:41:27 -08:00
John MacFarlane df1944f774 Markdown writer: fix output for pipe tables...
...with a huge number of columns. Previously we got invalid pipe
tables when the number of table columns exceeded the setting of
`--columns`.

Closes #9346.
2024-01-18 08:35:21 -08:00
John MacFarlane 18f0b70d40 DocBook reader: better handling of <procedure> and <substeps>.
`<procedure>` now gets parsed as an ordered list, and
`<substeps>` as a sublist. Closes #9341.
2024-01-16 11:58:42 -08:00
George Stagg 032f7c832f Add readMan to Text.Pandoc.Readers exports 2024-01-16 11:24:13 -08:00
dependabot[bot] ff753bdfa6 build(deps): bump cachix/install-nix-action from 24 to 25
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 24 to 25.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v24...v25)

---
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>
2024-01-14 19:40:11 -08:00
Carlos Scheidegger d8ff4ff878 Fix changelog.md typo: 2023-2024 2024-01-08 08:39:02 -08:00
John MacFarlane 2dd98b967b T.P.PDF: reliably detect when TOC has changed.
Sometimes the TOC changes but there are no warnings: this happens
when no labels are present.  In this case we must rerun LaTeX.
So we now take the sha1 hash of the TOC file and rerun LaTeX if it
changes between runs.

Closes #9295.
2024-01-06 11:10:05 -08:00
John MacFarlane 9f58a55280 Typst reader: fix handling of \overline.
Due to a typo, it was being incorrectly rendered as an `\underset`.
Closes #9294.
2024-01-05 22:09:36 -08:00
John MacFarlane e24002ed75 T.P.PDF: increase max number of LaTeX runs to 4.
On some documents, 4 runs are needed (e.g. when a LastPage
reference is used). Closes #9299.
2024-01-05 21:35:55 -08:00
John MacFarlane 80303beb35 getting-started.md: refer to GH discussions instead of pandoc-discuss. 2024-01-05 21:35:55 -08:00
mh4ckt3mh4ckt1c4s dce7f7a6a8 Fix beamer highlighting 2024-01-05 22:26:49 -07:00
John MacFarlane b3a471b09f MANUAL.txt: Add <pre> to list of exceptions for...
`markdown_in_html_blocks` extension. Closes #9305.
2024-01-05 18:54:41 -08:00
John MacFarlane 5d33b5690a Replace references to pandoc-discuss with GitHub discussions. 2024-01-05 18:40:45 -08:00
John MacFarlane 714ed52213 Update AUTHORS.md. pandoc-cli-3.1.11.1 3.1.11.1 2024-01-05 14:55:56 -08:00
John MacFarlane 6d19f174d4 Whitespace cleanup. 2024-01-05 14:50:52 -08:00
John MacFarlane 13ff7d2ece Update man pages. 2024-01-05 14:50:43 -08:00
John MacFarlane 6533296fae Fix make binpath target. 2024-01-05 14:50:27 -08:00
John MacFarlane 89a6fa9b00 Bump pandoc-cli to 3.1.11.1. 2024-01-05 13:41:29 -08:00
John MacFarlane bef21275f2 Update manual date. 2024-01-05 13:41:23 -08:00
John MacFarlane 6b4dcb5db4 Bump to 3.1.11.1 and update changelog. 2024-01-05 13:40:11 -08:00
John MacFarlane 5cff32c575 OPML writer: respect --wrap options & --columns in contents of notes.
Closes #9297.
2024-01-04 16:45:02 -07:00
John MacFarlane 59e28b82b6 PDF: expand list of environment variables to display in verbose output.
Closes #9303.
2024-01-04 08:50:46 -07:00
John MacFarlane 87533e2d04 Add command test for #9293. 2023-12-30 22:09:13 -07:00
John MacFarlane 9a8f27b0fe MediaWiki reader: handle multiline math in list items.
Closes #9293.
2023-12-30 21:53:57 -07:00
Edwin Török 56df2f1c17 ci(commit-validation): use git to walk commits
The PR event doesn't include the actual commits, just a count and a URL
to fetch it.
But we can checkout the entire git history, we don't have so many
commits that we need to optimize this just yet.
And then we might as well use `git` itself to walk the commit history.

(Using the remote commits URL would be useful only if we'd want to do a
shallow clone because we have too many commits)

Signed-off-by: Edwin Török <edwin@etorok.net>
2023-12-27 10:38:44 -08:00
John MacFarlane 17af220442 Add some explicit imports...
to avoid warnings with some GHC versions.
2023-12-26 23:06:38 -08:00
John MacFarlane c33750c4b2 commit-validation CI - another attempt. 2023-12-26 23:00:22 -08:00
Edwin Török 075cbb6419 fix(docx): support absolute header/footer paths
Header and footer references may be absolute in the reference.docx.
E.g. editing it with dotnet's Open-XML-SDK causes this error:

```
+ pandoc test.md -t docx --reference-doc referenceh.docx -o test.docx
word//word/header1.xml missing in reference docx
```

There was already code in pandoc to handle relative vs absolute paths in
references, so use it.

Signed-off-by: Edwin Török <edwin@etorok.net>
2023-12-26 22:51:28 -08:00
John MacFarlane 0ba8af939c commit validation CI: work with regular push as well as pr. 2023-12-26 22:49:50 -08:00
John MacFarlane b9b8343645 Fix commit-validation CI.
Hopefully. See #9286.
2023-12-26 22:46:56 -08:00
John MacFarlane b1a1f04168 ODT/opendocument writers: properly handle highlighting styles.
These styles were going into an office:styles element in content.xml,
but this is invalid.  Instead they must go in styles.xml. See #9287.

The variable `highlighting-styles` no longer has any effect on
the default opendocument template, and highlighting styles are
not included in opendocument output.
2023-12-26 22:12:44 -08:00