18073 Commits
Author SHA1 Message Date
John MacFarlane c21a07a972 Update AUTHORS.md. 3.6.4 pandoc-lua-engine-0.4.1.1 pandoc-cli-3.6.4 2025-03-16 11:52:46 -07:00
John MacFarlane bf9547327b Fix typo in stack.yaml. 2025-03-16 11:04:33 -07:00
John MacFarlane 7140861a0a Makefile - ignore missing upper bounds in cabal check. 2025-03-16 11:00:40 -07:00
John MacFarlane da45a9c76a pandoc-lua-engine to 0.4.1.1, allow latest containers 2025-03-16 10:58:49 -07:00
John MacFarlane d2621b3a69 Update tls version in stack.yaml. 2025-03-16 10:56:51 -07:00
John MacFarlane c2cf5bdc34 Update manual date and generate man pages 2025-03-16 10:54:48 -07:00
John MacFarlane 93e8027d32 Bump to 3.6.4 (also in pandoc-cli), update changelog. 2025-03-16 10:51:27 -07:00
John MacFarlane 5e44f7aa6c Use latest releases of texmath, typst. 2025-03-16 10:50:54 -07:00
John MacFarlane 69eb3cefdb Allow latest tasty-bench. 2025-03-16 10:50:01 -07:00
John MacFarlane 7d8e4e6c2d Allow containers 0.8. 2025-03-16 10:49:50 -07:00
John MacFarlane 2b11ce9bab Update tests for previous commit (protecting phantomsection). 2025-03-15 11:14:36 -07:00
etclub 915e3672c7 LaTeX writer: protect \phantomsection (#10688)
`\phantomsection` is used for anchors. When these occur inside a caption,
a LaTeX error is raised unless the `\phantomsection` is protected using `\protect`.
So we now `\protect` every `\phantomsection` (even outside of captions -- this
seems to be harmless).
2025-03-15 09:20:02 -07:00
josch 3f1f58e96e Default beamer template: only emit \date if set (#10687)
This allows one, for example, to set a custom \date in the
header-includes of the rmarkdown yaml frontmatter. Without this
conditional, the custom \date in the frontmatter would be overridden by
a (potentially empty) date from this template later.
2025-03-14 18:54:06 -07:00
John MacFarlane 4bf3a735f5 LaTeX writer: use * for multirow width when no colwidth specified.
Otherwise the multirow will be excessively wide.

Closes #10685.
2025-03-14 18:42:59 -07:00
John MacFarlane 28eca1e41e Markdown reader: remove some misguided list fanciness.
Previously we tried to handle things like commented out list
items:

    - one
    <!--
    - two
    -->
    - three

and also things like:

    - one `and
    - two` and

But the code we added to handle these cases caused problems with
other, more straightforward things, like:

    - one
    - ```
      code
      ```
    - three

So we are rolling back all the fanciness, so that the markdown
parser now behaves more like the commonmark parser, in which
indicators of block-level structure always take priority over
indicators of inline structure.

Closes #9865. Closes #7778. See also #5628.
2025-03-14 15:07:16 -07:00
John MacFarlane 7301daa799 Use lastest dev typst. 2025-03-13 23:17:02 -07:00
John MacFarlane 523148844e Use latest dev typst-hs 2025-03-13 14:06:16 -07:00
John MacFarlane ef822ef8e7 Improve EPUB metadata documentation. 2025-03-12 09:35:41 -07:00
John MacFarlane b37420bddc Change maxwidth default in MANUAL.txt.
Closes #10683.
2025-03-12 09:27:27 -07:00
John MacFarlane 67edf7ce7c Update Security section in manual.
Alert readers to a threat relating to iframe in HTML.
Add LaTeX, Typst to the list of formats that have an `include`.

Closes #10682.
2025-03-12 09:02:37 -07:00
John MacFarlane d68f8d2e67 Markdown writer: treat Emph [Emph ils]] as ils.
Otherwise we get `**content**` which means strong emphasis.

This is a more robust solution than using `_`, which won't work
for intraword emphasis.

Closes #10642.
2025-03-10 14:48:57 -07:00
John MacFarlane 7fe8c92821 HTML reader: ignore style tags in the body.
They are invalid but do occur in the wild.
Closes #10643.
2025-03-10 14:41:46 -07:00
John MacFarlane d73475cec8 HTML reader: skip MathJaX-introduced cruft.
See #10673.
2025-03-08 09:57:03 -08:00
John MacFarlane b7d2c4815f Markdown reader: fixed escapedChar' parser.
It should not accept escaped newlines.
See #10672.
2025-03-07 14:28:10 -08:00
John MacFarlane 5a360f1abe T.P.Logging: Change NoTitleElement from WARNING to INFO.
Users commonly complain about the warning when producing HTML
documents without an explicit title. It seems that an info message
is more appropriate, since pandoc's default here (using the input's
base name) ensures compliance with the standard and many users
are happy with that default.  Those who want to make sure the
message is seen can use `--verbose`.

Closes #10671.
2025-03-07 08:32:35 -08:00
John MacFarlane 45fdd1de10 Fix invalid OOXML in definition_list.docx test.
Closes #10394.
2025-03-05 21:41:30 -08:00
John MacFarlane e73b9ee1d8 Disable citations extension in writers if --citeproc is used.
Otherwise we get undesirable results, as the format's native
citation mechanism is used instead of (or in addition to) the
citeproc-generated citations. Closes #10662.
2025-03-05 13:24:05 -08:00
John MacFarlane b58381a0d4 Typst writer: ensure that citation-style works as well as csl.
Closes #10661.
2025-03-04 23:25:48 -08:00
John MacFarlane 0d9fbc9410 LaTeX reader: support \newline, \linebreak. 2025-03-04 23:25:48 -08:00
John MacFarlane 6c3e43dc57 LaTeX reader: better handle comments/whitespace in option lists and includes.
Closes #10659.
2025-03-04 15:00:37 -08:00
John MacFarlane 96c052a2a7 MANUAL.txt: Note about template variable for typst. 2025-03-03 23:19:18 -08:00
Olivier DOSSMANN d4bfc9ac8c MANUAL: correct typo: 'date' for doubled 'title' (#10654) 2025-03-02 09:02:43 -08:00
John MacFarlane 4ba0bac5c1 Update JATS tests for mathml rendering changes. 2025-03-01 22:14:40 -08:00
John MacFarlane 135e7bbeaf Use latest dev texmath. 2025-03-01 20:37:05 -08:00
John MacFarlane a0078910fc Use latest texmath. 2025-03-01 20:05:40 -08:00
John MacFarlane feaf525461 Use latest dev texmath. 2025-03-01 10:56:03 -08:00
John MacFarlane 97ec88a16c Update typst test. 2025-02-28 22:55:39 -08:00
John MacFarlane 085c4ffbc0 Use lastest dev typst. 2025-02-28 22:47:36 -08:00
John MacFarlane ac79938043 Typst writer: better heuristics for escaping potential list markers.
Closes #10650.
2025-02-27 13:37:25 -08:00
John MacFarlane 954067474d Use latest dev texmath. 2025-02-26 14:03:30 -08:00
John MacFarlane 002510ffed Use latest dev texmath. 2025-02-26 10:08:21 -08:00
John MacFarlane e2a0cc9dda Use latest dev texmath. 2025-02-25 22:49:50 -08:00
John MacFarlane 295fafc5bd Use latest dev texmath. 2025-02-24 09:09:15 -08:00
R. N. West 7930fd143d doc/lua-filters.md: Add missing html_math_method 'katex' 2025-02-24 16:45:13 +01:00
John MacFarlane e8b987250c Use latest dev texmath. 2025-02-20 23:29:22 -08:00
John MacFarlane 3caf2b1e3a Revert "Docx reader and writer: support row heads."
This reverts commit cbe67b9602.

Word sets `w:firstColumn="1"` by default for tables.  You have to find
the Table Design tab and explicitly uncheck "First Column" to make this
go away.  In most cases, I don't think writers intend to designate
the first column as a row head, so this commit is going to produce
unexpected results.  In addition, because of the table normalization
done by pandoc-type's `tableWith`, any table containing a colspanned
cell in the left-hand column will get broken if the first column is
designated a row head.  For these reasons it seems best to revert this
change, which was made in response to #9495.

Closes #10627.
2025-02-19 10:02:50 -08:00
John MacFarlane 3528f405b1 Use latest dev texmath. 2025-02-18 14:38:57 -08:00
John MacFarlane 2530422b74 Give better position information when YAML metadata parsing fails...
with a YAML exception.  See #10231.
2025-02-18 08:42:18 -08:00
John MacFarlane dbe2495ad4 EPUB writer: use a nonbreaking space after section number in nav.xhtml.
This seems to be required for iOS books app to display the space.
2025-02-16 14:43:37 -08:00
John MacFarlane abf0b5123b T.P.Shared, makeSections: put some attributes on section element only.
Certain `role` and `epub:type` attributes should only be on the section
(and indeed, many `role`s give a validation error if left on the heading
element).
2025-02-16 11:15:41 -08:00