summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-02-04Depend on dev typst-hs.John MacFarlane
2024-02-03Docx writer: restore ability to center-justify table.John MacFarlane
The fix to #5947 caused all tables to be left indented. This was necessary to avoid extra indentation in table cells when a table appeared in a list item. This change makes the changes conditional, so that they only affect tables in list items. Closes #9393.
2024-02-03Shared: `makeSections` behavior changes.John MacFarlane
+ When the optional base level parameter is provided, we no longer ensure that the sequence of heading levels is gapless [behavior change]. Instead, we set the lowest heading level to the specified base level, and adjust the others accordingly. If an author wants to skip a level, e.g. from level 1 to level 3, they can do that. In general, the heading levels specified in the source document are preserved; `makeSections` only puts them into a hierarchical structure. Closes #9398. + Section numbers are now assigned so that the top level gets `1`, no matter what heading level is used. So, even if the top heading level is 2, numbers will be `1`, `2`, etc. rather than `0.1`, `0.2`, as in the past. Closes #5071. + We revert to the old behavior when the `--number-offset` option is used. So, for example, if a document begins with a level-3 heading, and `--number-offset=1,2` is used, the top-level section numbers will be `1.2.1`, `1.2.2`, etc. This is mainly for backwards-compatibility.
2024-02-03Shared.makeSections: more elegant code for section number calculation.John MacFarlane
2024-02-03MANUAL: Revised docs for fontfallback.John MacFarlane
Moved ConTeXt-specific docs to the ConTeXt variables section.
2024-02-03ConTeXt template: support font fallback (#9361)Lawrence Chonavel
This uses the same YAML options as the LaTeX template.
2024-02-02Harmonize spelling of Markdown and MultiMarkdown (#9402)Salim B
MANUAL.txt: Markdown and MultiMarkdown are proper nouns and thus start with an uppercase letter.
2024-02-01Using internal column widths in pptx writer tables (#9392)Tomas Dahlqvist
The table writer used to only divide all available width evenly for all columns. In this update the code uses the incoming widths if they are available. If they are not set the earlier even distribution is used. Some of the golden templates are adjusted slightly because of different rounding when using the new calculation model. Closes #5706
2024-02-01EPUB accessibility additions (#9400)Iacobus1983
AccessModeSufficient and AccessibilitySummary are added. These metadata are optional according to the EPUB Accessibility 1.1 standard, but ACE Daisy checker flags ebooks for missing them (cf daisy/ace#389 and daisy/ace#400). With this commit: AccessModeSufficient is defaulted to "textual". AccessibilitySummary can be included via the metadata block.
2024-01-30Typst writer: unescape URI escapes in image paths.John MacFarlane
Closes #9389.
2024-01-30Makefile: Validate generated EPUB as part of prerelease checks.John MacFarlane
2024-01-30Chunks: autogenerate unique ids for sections missing them.John MacFarlane
This is needed for TOC generation to work properly. We can't create TOC links if there are no ids. This fixes some EPUB validation issues we've been getting since switching over to Chunks for chunking. Closes #9383.
2024-01-30Update lua tests for change to toTOCTree.John MacFarlane
2024-01-29Chunks: improve fixTOCTreePaths.John MacFarlane
We weren't adding ids for section headings that don't head a chunk, but these headings are needed for a TOC.
2024-01-29Typst writer: handle labels and citaiton ids with spaces...John MacFarlane
and other special characters. In these cases, we produce an explicit `label()` rather than using `<>` or `@`. Cloess #9387.
2024-01-29Typst writer: avoid illegal labels.John MacFarlane
Closes #9387.
2024-01-29LaTeX reader: generate relative widths for `\linewidth`, `\textheight`.John MacFarlane
Closes #9388.
2024-01-29Makefile: change default rule to build THEN test.John MacFarlane
That way we can play with the executable while the tests complete.
2024-01-29Typst writer escaping improvements.John MacFarlane
We no longer escape `(`. The reason we did this before (#9137) has been addressed in another way (#9252). We only escape `=`, `+`, `-` at the beginning of a line. We now also escape `/` at the beginning of a line. This should reduce unnecessary escapes. Closes #9386.
2024-01-29Lua: catch encoding error in `pandoc.read`Albert Krewinkel
Fixed a bug that could lead to an un-catchable error and program termination when `pandoc.read` was called with invalid UTF-8 input. Fixes: #9385
2024-01-28Depend on commonmark 0.2.5.John MacFarlane
2024-01-27EPUB writer: add ARA roles for accessibility (#9378)Iacobus1983
This commit adds roles to some html element within epub in order to comply with accessibility best practices. Footnote references are given role "doc-noteref",footnote text gets "doc-footnote", and nav gets "doc-toc".
2024-01-27EPUB writer: change default accessibilityFeatures.John MacFarlane
Don't include ARIA and MathML in general; they won't apply for epub2 or documents without math.
2024-01-27make validate-epub - produce HTML ace report in ace subdirectory.John MacFarlane
2024-01-27Regenerate epub tests with latest changes to EPUB reader.John MacFarlane
2024-01-26EPUB reader: don't put `#` characters in identifiers.John MacFarlane
2024-01-26Add ace check to validate-epub Makefile target.John MacFarlane
2024-01-26EPUB writer: Add accessibility metadata to EPUB metadata.John MacFarlane
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-25EPUB writer: Add xml:lang to package element.John MacFarlane
See #9372.
2024-01-25Add some kerns where needed between quotes in LaTeX output.John MacFarlane
Closes #9371.
2024-01-23Depend on dev commonmark-pandoc.John MacFarlane
2024-01-23add testcaseGokul Rajiv
2024-01-23add case for "variable" classGokul Rajiv
2024-01-22Use reference form (e.g. `@jones2000[p. 30]`) for citations.John MacFarlane
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-22Org writer: escape special lines in code blocksAlbert Krewinkel
Fixes: #9218
2024-01-21build(deps): bump actions/cache from 3 to 4dependabot[bot]
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-20HTML writer: ensure that an alt attribute is added in EPUB output.John MacFarlane
This seems to be required by iBooks; even an empty alt attribute will satisfy it. Closes #9354.
2024-01-20LaTeX writer: create valid table even when table is empty.John MacFarlane
Closes #9350.
2024-01-20Custom writers: fix handling of common stateAlbert Krewinkel
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-20LaTeX writer: set font fallback for babel main fontMax Heller
2024-01-19Document font fallback variables.John MacFarlane
2024-01-19LaTeX template: support font fallbacklawcho
* LuaLaTeX-specific (uses luaotfload) * Configured in YAML metadata * Sans/main/mono fonts have separate fallback chains
2024-01-18Markdown writer: fix output for pipe tables...John MacFarlane
...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-16DocBook reader: better handling of `<procedure>` and `<substeps>`.John MacFarlane
`<procedure>` now gets parsed as an ordered list, and `<substeps>` as a sublist. Closes #9341.
2024-01-16Add readMan to Text.Pandoc.Readers exportsGeorge Stagg
2024-01-14build(deps): bump cachix/install-nix-action from 24 to 25dependabot[bot]
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-08Fix changelog.md typo: 2023-2024Carlos Scheidegger
2024-01-06T.P.PDF: reliably detect when TOC has changed.John MacFarlane
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-05Typst reader: fix handling of `\overline`.John MacFarlane
Due to a typo, it was being incorrectly rendered as an `\underset`. Closes #9294.
2024-01-05T.P.PDF: increase max number of LaTeX runs to 4.John MacFarlane
On some documents, 4 runs are needed (e.g. when a LastPage reference is used). Closes #9299.