Commit Graph
17707 Commits
Author SHA1 Message Date
John MacFarlane 8d35b794e3 DokuWiki reader: properly parse -- and --- as dashes. 2024-09-21 18:33:34 -07:00
John MacFarlane 7e6a3b063e DokuWiki reader: fix block quote behavior.
Closes #6461.

Blockquotes are not really block containers in DokuWiki;
the lines are interpreted literally (so, e.g., you can't
start a list), and line breaks are added at the ends.
2024-09-21 18:33:28 -07:00
John MacFarlane 16a9df8c6b DokuWiki writer: don't emit <HTML> tags.
The use of these tags is now strongly discouraged for security
reasons, and will be removed.

We previously used them as a fallback for lists that could not
be represented using DokuWiki syntax, e.g. ordered lists with
fancy numbers or lists with multiple blocks in their items.

We also used them for block quotes with multiple blocks as
their contents.

We now use the `<WRAP>` syntax (from the optional WRAP plugin)
to handle lists with multiple blocks as their contents.

A new method of handling block quotes with complex contents
has the side benefit of also handling nested block quotes,
which weren't supported before.

`<HTML>` and `<html>` tags are only for raw HTML blocks and
inlines, and only if the `raw_html` extension is enabled. (It is
now a valid extension for `dokuwiki`, though off by default.)

Closes #7413.
2024-09-21 16:58:01 -07:00
Albert Krewinkel 8aa796f30a Lua: support character styling via pandoc.layout
The `Doc` values produced and handled by the `pandoc.layout` module can
now be styled using `bold`, `italic`, `underlined`, or `strikeout`. The
style is ignored in normal rendering, but becomes visible when rendering
to ANSI output. The `pandoc.layout.render` function now takes a third
parameter that defines the output style, either *plain* or *ansi*.
2024-09-21 15:20:34 +02:00
Albert Krewinkel bff35172e3 Fix stack build 2024-09-21 14:08:35 +02:00
Albert Krewinkel 05aa18420f Lua: update List module
The module now comes with a method `:at(index[, def])` that allows to access
indices, accepts negative indices to count from the end, and will return the
`def` value as a default if the list has no item at the given position.

Furthermore, the list constructor `pandoc.List` now accepts iterators. E.g.,
`pandoc.List(text:gmatch '%S+')` returns the list of words in `text`.

Closes: #9835
2024-09-21 10:10:35 +02:00
Albert Krewinkel 5ccf380dad JATS template: support floats-group
The content of the `floats-group` variable is now rendered in a
`<floats-group>` element when using the *publishing* or *archiving* tag
sets.

Discussion: #10196
2024-09-20 17:36:36 +02:00
Olivier Benz 7b48fd5801 linux/make_artifacts.sh: add riscv64 support 2024-09-19 08:20:27 -07:00
Yehuda Katz bac631fda8 Suggest documentation for syntax highlighting issues on Windows
Suggest documentation to preemptively address user issues like #6704
2024-09-18 11:37:13 -07:00
John MacFarlane 56854c22f4 Make env interpolation work for to and from fields...
...in defaults files. These can contain paths of custom readers and
writers. See #8024.
2024-09-16 09:45:47 -07:00
dependabot[bot] 5e3011fe0c Bump cachix/install-nix-action from V27 to 28
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from V27 to 28. This release includes the previously tagged commit.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/V27...V28)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-15 21:52:49 -07:00
John MacFarlane 04825ceb6b Text.Pandoc.PDF: read .toc and .log files from output directory.
When this is different from the input directory, this is
where .toc and .log files are written.

Closes #10186.
2024-09-14 17:19:00 -07:00
Erik Rask 1cdf2672f2 Parse id, class, and tabstyle on tables in DocBook Reader
Add parsing of id (xml:id), class, and tabstyle XML attributes
for table and informaltable in the DocBook reader.
The tabstyle value is put in the 'custom-style' attribute.

fixes #10181
2024-09-14 10:21:53 -07:00
John MacFarlane fe9459c754 Fix test case #10185. 2024-09-14 10:18:52 -07:00
John MacFarlane 8d09a58857 LaTeX writer: avoid error on refs div with empty citations.
If there are no citations, don't emit an empty CSLReferences
environment.

Closes #10185.
2024-09-14 10:12:07 -07:00
John MacFarlane 8c14784f41 HTML writer: don't emit missing title/lang warnings if templates...
does not contain the `pagetitle` or `lang` variables respectively.

Closes #9370.
2024-09-13 20:45:19 -07:00
John MacFarlane fdbfb7a807 T.P.Shared addPandocAttributes - modify for new commonmark-pandoc.
The new commonmark-pandoc version automatically adds the
attribute `wrapper="1"` on all Divs and Spans that
are introduced just as containers for attributes that belong
properly to their contents.  So we don't need to add the
attribute here.

This gives much better results in some cases. Previously the
wrapper attribute was being added even for explicit Divs and
Spans in djot, but it is not needed in these cases.
2024-09-13 09:35:33 -07:00
John MacFarlane 62b7b17472 Use latest djoths. 2024-09-13 09:35:33 -07:00
John MacFarlane 1bb01ece75 Fix stack.yaml. 2024-09-12 09:58:31 -07:00
John MacFarlane 289d8bafcb Use dev djoths. 2024-09-12 08:29:47 -07:00
John MacFarlane f28de2f8ee Use dev commonmark-hs. 2024-09-11 12:01:59 -07:00
Evan Silberman e81c2d4bf8 Fix copy-pasteo in ANSI writer subscripts
The ANSI Superscript writer was copy-pasted and incompletely modified to
create the Subscript output writer and I forgot to call the right
function, so subscripts were getting rendered with superscripted
numbers. Adds a line for this to the ANSI golden test.
2024-09-11 08:44:48 -07:00
Martin Michlmayr ed73093168 Fix formatting issue in changelog
Fix formatting issue in changelog to make sub-item be listed
as such.
2024-09-10 19:36:51 -07:00
John MacFarlane 24e5aa6583 Fix a changelog bug. 2024-09-10 11:51:44 -07:00
John MacFarlane 687155e2bd Add command test for #9121. pandoc-lua-engine-0.3.2 pandoc-server-0.1.0.8 3.4 pandoc-cli-3.4 2024-09-10 09:16:14 -07:00
John MacFarlane 1166d331a5 More stack.yaml tweaks. 2024-09-10 09:15:24 -07:00
John MacFarlane 320a8add03 Markdown writer: fix tex_math_gfm output for display math. 2024-09-10 08:22:48 -07:00
John MacFarlane 2d299b085f stack.yaml - add crypton-connection to work with tls 2.1. 2024-09-10 08:18:05 -07:00
John MacFarlane b02654948c Update AUTHORS.md. 2024-09-09 22:31:10 -07:00
John MacFarlane 31d3406972 stack.yaml - remove unneeded line. 2024-09-09 22:21:38 -07:00
John MacFarlane 85515aee24 Update stack.yaml. 2024-09-09 22:20:28 -07:00
John MacFarlane f50fc8c200 Regenerated README.md 2024-09-09 22:20:19 -07:00
John MacFarlane 8bf03fd337 Added missing extra-source-files. 2024-09-09 22:20:02 -07:00
John MacFarlane 6f6a736844 Update man pages. 2024-09-09 22:14:43 -07:00
John MacFarlane 103149d75d Bump pandoc-server to 0.1.0.8. 2024-09-09 22:13:36 -07:00
John MacFarlane a0e0973c63 Bump pandoc-lua-engine to 0.3.2. 2024-09-09 22:13:27 -07:00
John MacFarlane 766ebd73fe Bump pandoc-cli to 3.4, depend on pandoc 3.4. 2024-09-09 22:13:15 -07:00
John MacFarlane e245d61804 Bump to 3.4, update changelog. 2024-09-09 22:13:05 -07:00
John MacFarlane 94f9727b2f ANSI writer: use black rather than green for headings. 2024-09-09 21:49:42 -07:00
John MacFarlane 343f0a0752 Use released skylighting-core, skylighting. 2024-09-09 20:18:56 -07:00
Albert Krewinkel c0f995d0a3 Remove Text.Pandoc.Shared.stripEmptyParagraphs [API change]
This is no longer used.
2024-09-09 20:09:13 -07:00
Pau RE b7bcc42590 Add unofficial gemini URI scheme 2024-09-09 20:08:18 -07:00
thomjur 1881aef09e --docx+citations: Add "SuppressAuthor" and "AuthorOnly" to citationMode 2024-09-09 20:07:18 -07:00
Sebbones 7e04673fea Support custom-style attribute for docx table 2024-09-09 20:05:42 -07:00
John MacFarlane 836de16e3b Use released versions of typst, texmath. 2024-09-09 18:25:31 -07:00
John MacFarlane a6df5d70ba stack.yaml - depend on latest hslua-module-doclayout. 2024-09-09 10:30:33 -07:00
John MacFarlane 4a42a7d4a9 Tests.Readers.Markdown: avoid use of 'head'. 2024-09-09 09:15:54 -07:00
John MacFarlane 2edda1e6f0 stack.yaml - fix duplicate packages. 2024-09-09 09:11:57 -07:00
John MacFarlane 90e8725f5b Tests: use 'drop 1' instead of partial function 'tail'. 2024-09-09 09:03:17 -07:00
John MacFarlane 08a5ef6080 Use released (Hackage revision) hslua-module-doclayout. 2024-09-09 08:58:34 -07:00