John MacFarlane
6956176c19
AsciiDoc writer: use doubled delims in more contexts.
...
Also escape the `#` character.
Closes #11362 .
An alternative solution, raised in #11362 , would be to
rely less on escaping and simply always use doubled delimiters.
However, there would still be a need for escaping, since one
might use a literal `##` (for example)>
2025-12-27 23:10:22 -07:00
Tuong Nguyen Manh
d52e40d179
RTF reader: Ensure new paragraph on \pard ( #11361 )
...
New paragraphs may start with \pard alone without an explicit paragraph
break with \par preceding it.
2025-12-27 22:42:22 -07:00
Albert Lei
6e0f052b83
MANUAL.txt: fix typo about --chunk-template ( #11358 )
2025-12-25 15:31:19 -07:00
John MacFarlane
74351e47b8
CI: disable tests in the -http configuration.
2025-12-24 15:44:18 -07:00
John MacFarlane
455bea907d
Factor out openURL into T.P.Class.IO.HTTP.
...
Unexported module.
2025-12-24 12:17:35 -07:00
John MacFarlane
7648494849
CI: test with -http flag.
2025-12-24 12:15:40 -07:00
John MacFarlane
311dbfdee8
Revert "CI: test with ghc 9.14."
...
This reverts commit ef3401ce0a .
Not available yet in ghcup.
2025-12-24 11:21:26 -07:00
John MacFarlane
5988155f09
openURL without http support: Use throwError rather than error.
2025-12-24 11:20:19 -07:00
John MacFarlane
ef3401ce0a
CI: test with ghc 9.14.
2025-12-24 11:12:20 -07:00
John MacFarlane
83692bbc50
Add http cabal flag.
...
This allows pandoc to be compiled without support for making
HTTP requests, which is useful when WASM is the target.
Closes #10980 .
2025-12-24 11:00:25 -07:00
John MacFarlane
eef6cde22f
Change PandocHttpError constructor type.
...
Now it takes a Text instead of an HttpException as the second
argument. [API change]
Motivation: if we expose HttpException in the public API, it
makes it difficult to provide a version of pandoc that can
be compiled to wasm, which currently can't handle the network
libraries.
See #10980 .
2025-12-24 09:20:39 -07:00
Anton Melnikov
af27e8a421
MediaWiki reader: add behavior switches support ( #11354 )
...
MediaWiki format supports [magic
words](https://www.mediawiki.org/wiki/Help:Magic_words ). These are
basically built-in templates. This commit introduces support for behavior
switches, which is one of the three types of magic words. They add
a field to metadata without producing any text.
Signed-off-by: botantony <antonsm21@gmail.com >
2025-12-20 21:27:28 -08:00
John MacFarlane
144eb4e51b
Use latest dev djoths.
2025-12-18 11:33:58 +01:00
John MacFarlane
dc723571c6
Use latest texmath.
2025-12-17 11:54:50 +01:00
John MacFarlane
e57ab4734e
PDF: add SOURCE_DATE_EPOCH to verbose env variable info
2025-12-15 22:30:22 +01:00
John MacFarlane
bde04d14d2
Fix typo.
2025-12-15 20:53:35 +01:00
John MacFarlane
bb9e54a03e
Use latest dev typst-hs.
2025-12-15 17:28:21 +01:00
dependabot[bot]
80e7f188fb
Bump actions/upload-artifact from 5 to 6 ( #11352 )
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 5 to 6.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-version: '6'
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>
2025-12-15 10:43:42 +01:00
dependabot[bot]
138ee9ded1
Bump actions/cache from 4 to 5 ( #11351 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 4 to 5.
- [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/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-version: '5'
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>
2025-12-15 10:43:13 +01:00
John MacFarlane
6f401799b7
Updaet to latest dev texmath, typst.
2025-12-14 22:42:47 +01:00
benniekiss
db9be758bc
Markdown reader: fix parsing of inline math ($...$) ( #11348 )
...
Do not allow blank lines before closing `$` delimiter.
This brings the parser in line with the documentation.
Closes #11311 .
2025-12-14 16:46:31 +01:00
Tuong Nguyen Manh
e8ed40ef01
DocBook reader: Fix adding wrong metadata ( #11347 )
...
Now keep track of the current element stack to only add metadata if
inside an appropriate parent element.
Closes #11300 .
2025-12-13 22:28:59 +01:00
John MacFarlane
5673316d4c
Mention Excel in cabal description.
2025-12-12 11:55:06 +01:00
John MacFarlane
73dd5cc308
Add -Wno-deriving-typeble to cabal ghc-options for ghc >= 9.12.
2025-12-12 11:54:19 +01:00
John MacFarlane
0645dead48
CI: remove --allow-newer for ghc 9.12.
2025-12-12 11:39:54 +01:00
John MacFarlane
0d80123db7
CI: re-add -Wno-deriving-typeable for ghc 9.12.
2025-12-12 11:14:04 +01:00
John MacFarlane
0da76b1248
CI: try removing -Wno-unused-imports.
2025-12-12 11:01:31 +01:00
John MacFarlane
e7e1f13bcb
Fix some more imports involving foldl'.
2025-12-12 11:00:21 +01:00
John MacFarlane
d5e100eec2
Fix imports to avoid warning about foldl'.
...
`foldl'` is exported by Prelude by base 4.20+. So we need to do
some qualified importing to avoid warnings about redundant imports.
2025-12-12 10:32:17 +01:00
John MacFarlane
ff3eda71eb
Update flake.
2025-12-11 23:38:56 +01:00
John MacFarlane
eea72420fc
Use ghc 9.10 (not 9.12) for releases and nightlies.
2025-12-11 23:07:06 +01:00
John MacFarlane
ab212c7b87
Fix compiler warning.
2025-12-11 22:58:24 +01:00
John MacFarlane
a90307d0c8
Remove workaround that had been needed for older ghc versions.
2025-12-11 22:19:31 +01:00
John MacFarlane
c6e2eee5a5
Remove obsolete comment.
2025-12-11 22:19:21 +01:00
John MacFarlane
f7670f05ea
cirrus builds: use ghc 9.12.
2025-12-11 22:06:20 +01:00
John MacFarlane
0679d22ae1
Drop support for ghc < 9.6.
...
Build nightly and release candidates using ghc 9.12.
2025-12-11 22:02:16 +01:00
Albert Krewinkel
47ada83bcb
JATS writer: fix XML output for nested figures
...
Subfigures are now wrapped inside a `<fig-group>` element. Furthermore,
figure content that isn't allowed as children of `<fig>` elements, such
as raw text, gets wrapped in `<p>` elements to ensure schema-conform
XML production.
Fixes : #11342
2025-12-11 19:57:54 +01:00
John MacFarlane
20973b12cc
Remove redundant import.
2025-12-11 16:27:48 +01:00
John MacFarlane
1f76d3f154
Markdown writer: use setext for headers containing line breaks...
...
...for commonmark. Closes #11341 .
2025-12-11 11:30:38 +01:00
John MacFarlane
6d745e5276
Markdown writer: ensure \ line breaks are used for commonmark.
2025-12-11 11:30:20 +01:00
John MacFarlane
d19cc38f11
T.P.Shared: export hasLineBreaks.
...
[API change]
Formerly defined in the DocBook writer but more generally useful.
2025-12-11 10:51:54 +01:00
John MacFarlane
a6fae6b780
Org: don't include 'example' class when parsing org example blocks.
...
These are just unmarked code blocks.
Closes #11339 .
2025-12-10 23:55:08 +01:00
John MacFarlane
b6339f9baa
Typst writer: escape hyphens when needed.
...
Closes #11334 .
2025-12-09 19:11:47 +01:00
John MacFarlane
c365deaf1f
Citeproc: avoid adding an extra space at the beginning of a Cite.
2025-12-09 13:41:43 +01:00
John MacFarlane
b347de3cdf
nightly: build macos on macos-latest (arm64).
2025-12-09 09:37:45 +01:00
John MacFarlane
457d18df57
Fix stack.yaml.
2025-12-07 17:16:49 +01:00
John MacFarlane
7767011767
Implement reset-citation-positions class on headings.
...
When the `reset-citation-positions` class is added to
a top-level heading, `--citeproc` will reset position
information at that point in the document. This is needed
in order to ensure that the first citation in a chapter
to a work that has been cited in a previous chapter will
not be in abbreviated form.
Requires a dependency on a development version of citeproc.
2025-12-07 17:07:05 +01:00
John MacFarlane
7ced712014
HTML5 template: conditionally include lang attribute.
...
Previously we included it unconditionally, even if this
meant giving it an empty value. This seems at best redundant,
since the empty value is the default. At worst, it adds clutter
and according to some sources may prevent the use of browser defaults.
I believe that the justification for including these attributes
even with empty values is not a good one; see commit 07d51d9
for the original change. On my reading, the HTML spec does not
require the presence of the attribute on the html element; it
only says that if the attribute is present, it must have an
empty string or valid BCP 47 language tag as its value.
See also #11324 .
2025-12-06 11:51:09 +01:00
John MacFarlane
a3ab4b8545
HTML reader: parse inline style elements as RawInline.
...
This is a cleaner fix to #10643 than the reverted commit 7fe8c92 .
Styles are not stripped, but with this change they will not
interfere with inline parsing.
Closes #11246 .
2025-12-05 11:14:11 +01:00
John MacFarlane
6531f24540
Revert "HTML reader: ignore style tags in the body."
...
This reverts commit 7fe8c92821 .
See #10643 and #11246 .
2025-12-05 10:47:32 +01:00