Click to expand changelog
-
Allow all boolean flags to take an optional
true
orfalse
value (#8788, Sam S. Almahri). The default is true if no value is specified, so this is fully backwards-compatible. -
Support
--id-prefix
for markdown output (#8878) -
Markdown reader:
- Add strictness annotations to fix a memory leak (#8762).
-
Typst reader:
- Use typst-hs 0.3.0.0, which is more robust, fixes many bugs, and targets typst 0.6.
- Package loading is now supported, as long as the package has been cached or is local.
- Rewrite Typst reader in a way that makes it easier to extend.
- Filter out CR in raw.
- Handle block content for link element.
- Handle block-level content in text element.
- Handle style, align, place in inline contexts too.
- Improve info message for skipped elements.
-
Add typst reader tests (#8942).
-
MediaWiki reader:
- Revise treatment of “link trail.” Previously we only included ASCII letters. That is correct for English but not for, e.g., Spanish (see comment in #8525). A safer approach is to include all letters except those in the CJK unified ideograph ranges.
-
AsciiDoc writer:
- Make modern AsciiDoc the target for
asciidoc
(#8936). The AsciiDoc community now regards the dialect parsed byasciidoctor
as the official AsciiDoc syntax, so it should be the target of ourasciidoc
format. Theasciidoc
output format now behaves likeasciidoctor
used to.asciidoctor
is a deprecated synonynm. For the oldasciidoc
behavior (targeting the Python script), useasciidoc_legacy
. The templates have been consolidated. Instead of separatedefault.asciidoctor
anddefault.asciidoc
templates, there is justdefault.asciidoc
. - Text.Pandoc.Writers.AsciiDoc API changes:
writeAsciiDoc
now behaves likewriteAsciiDoctor
used to.writeAsciiDoctor
is now a deprecated synonym forwriteAsciiDoc
.- New exported function
writeAsciiDocLegacy
behaves likewriteAsciDoc
used to.
- Update line-through for asciidoc writer to custom inline style (#8933, Kevin Broch).
- Make modern AsciiDoc the target for
-
Typst writer:
-
Docx writer:
- Make relative widths work in tables. This didn’t work before because we were missing an attribute that tells Word to used fixed widths rather than computing optimal ones.
-
DokuWiki writer: fix lists with Div elements (#8920). The DokuWiki writer doesn’t render Divs specially, so their presence in a list (e.g. because of custom-styles) need not prevent a regular DokuWiki list from being used. (Falling back to raw HTML in this case is pointless because no new information is given.)
-
LaTeX writer:
- Fix babel name for
fa
(should bepersian
). - Prevent babel language from being imported twice (#8925).
- Fix babel name for
-
Text.Pandoc.Class:
-
Add
toTextM
[API change]. This is likeText.Pandoc.UTF8.toText
, except:- it takes a file path as first argument, in addition to bytestring contents
- it raises an informative error with source position if the contents are not UTF8-encoded
This replaces
utf8ToText
whenever we have the filename and are in a PandocMonad instance. This will lead to more informative error messages for UTF8-encoding, indicating the file path and byte offset where the error occurs (#8884). -
-
Remove invalid term “Subject” from Turkish translations (#8921).
-
stack.yaml: add pkg-config to nix packages (#8927, pacien).
-
Allow aeson 2.2.
-
MANUAL: Add clarification on –section-divs. Closes #8882.