mbracke
a331a1c00a
Docx reader: fix anchor in header after anchor ( #9626 )
...
When the last parPart before a header was a bookmark, no span with an
anchor was added for a bookmark in the header. But the function that
adds header anchors to the anchor map, needs a span with an anchor.
So this commit adds that span.
2024-04-18 09:32:48 -07:00
John MacFarlane
3d902349d1
T.P.App: Move "transforms" after filters.
...
This will mean that `--shift-heading-level-by` affects a
heading added by `reference-section-title`. See #9664 .
2024-04-17 22:48:56 -07:00
John MacFarlane
57dfab5eb9
MANUAL.txt: better document truthiness for conditionals.
...
Closes #9661 .
2024-04-17 09:51:28 -07:00
Albert Krewinkel
5f937eae61
Lua: add new module pandoc.image
...
The module provides basic querying functions for image properties.
2024-04-16 10:23:08 -07:00
Albert Krewinkel
9a09c89636
T.P.ImageSize: export ImageSize datatype
2024-04-16 10:23:08 -07:00
John MacFarlane
96add8b9cc
Command tests: include regular PATH...
...
...after directory with the test executable.
I want to see if this fixes the CI problem on Windows, which
may be due to problems finding a DLL.
2024-04-15 10:19:41 -07:00
John MacFarlane
0f8086cbd3
Fix command test for #9652 .
2024-04-15 10:19:22 -07:00
Carlos Scheidegger
52ee4f109f
SelfContained: merge 'class' attr when both img and svg specify it ( #9653 )
...
Closes #9652 .
2024-04-15 09:44:30 -07:00
John MacFarlane
dafa7a2c0c
Allow network 3.2.
2024-04-15 09:37:56 -07:00
Gordon Woodhull
99a45917ac
Typst writer: property output ( #9648 )
...
The Typst writer will pass on specially marked attributes as raw Typst
parameters on selected elements. This allows extensive customization
using filters.
An attribute with key `typst:PROP` will set the PROP parameter on
the corresponding Typst element.
An attribute with key `typst:text:PROP` will set a parameter on a Typst
`#set text()` rule or a text element.
The feature has been implemented for the following elements:
* span text
* div and div text
* table and table text
* table cell and table cell text
It would be possible to support more elements in the future.
A separate document has been added that provides extensive
documentation and examples of the use of this feature.
2024-04-15 09:32:32 -07:00
Ian Max Andolina
7eb2a143e1
Update MANUAL.txt
...
replace reference.docx with a link
2024-04-14 15:47:43 -07:00
Ian Max Andolina
de77169026
Update MANUAL.txt to mention custom-style works with ODT
...
This commit https://github.com/jgm/pandoc/commit/bde3d7622ddd2cda7adabc309335bb2865c1d520 allowed `custom-style` to work with ODT but this is not mentioned in the manual. I tested what happens when the Style is not present and updated the text accordingly. I edited via Github web interface so hard wrapping is approximate. I hope the anchor to the reference doc works as expected (`#option--reference-doc` is the anchor as far as I could determine)...
2024-04-14 15:47:43 -07:00
John MacFarlane
bc9f990256
OpenDocument writer: implement custom-style for spans.
...
Closes #9657 .
2024-04-14 11:29:56 -07:00
John MacFarlane
ad6b9dd974
Use dev version of djot.
2024-04-14 09:48:30 -07:00
John MacFarlane
066d1ba7ef
reference.docx: use current standard Word theme.
...
This includes using the sans-serif font Aptos instead of
the serif font Cambria.
See #7280 .
2024-04-13 22:31:20 -07:00
John MacFarlane
14f69c60ef
reference.docx: Remove duplicate DefaultParagraphFont in styles.xml.
2024-04-13 22:12:11 -07:00
John MacFarlane
e0f37996b3
reference.docx: stay closer to Word's current defaults.
...
We use the default styles for headings and the title instead
of what pandoc was using.
See #7280 .
2024-04-13 18:15:04 -07:00
John MacFarlane
11050df108
Fix ooxml for b6b668ee3f
2024-04-13 17:54:33 -07:00
John MacFarlane
b6b668ee3f
Use conventional styles/indents for Word bullet lists.
...
See #7280 .
2024-04-13 11:44:09 -07:00
John MacFarlane
a0c1bdeb8b
Markdown reader: auto-close unclosed divs.
...
This applies to both fenced and HTML-ish varieties.
Otherwise we face an exponential performance problem with
backtracking.
This also accords with the behavior of the `fenced_divs`
extension in commonmark.
A warning is issued when a div is implicitly closed.
Closes #9635 .
2024-04-10 17:18:05 -07:00
John MacFarlane
820e371d94
Logging: Add UnclosedDiv constructor for LogMessage.
...
[API change]
2024-04-10 17:17:45 -07:00
John MacFarlane
4b5409acf2
Use dev version of texmath.
2024-04-10 12:28:57 -07:00
John MacFarlane
f43331b9dd
Add clarification about toc-title in docx, pptx.
...
See #9645 .
2024-04-09 08:02:46 -07:00
James P. Ascher
a062ebbc4a
ConTeXt writer: replace depreciated \sc with \setsmallcaps
...
ConTeXt now depreciates `\sc` in favor of `\setsmallcaps`, see #9618
2024-04-08 20:35:22 -07:00
John MacFarlane
91e758590d
LaTeX writer: improve treatment of math inside soul commands.
...
soul commands (`ul`, `hl`, `st`) are very fragile and the math
must be handled specially. In #9597 we improved this for strikethrough
but omitted the other soul environments. This patch generalizes the
fix and a related fix for verbatim (#1294 , #5529 ).
2024-04-08 08:53:47 -07:00
John MacFarlane
226c76b4c2
Fix bug in changelog.
2024-04-07 10:13:08 -07:00
John MacFarlane
038c4dbc8a
release-candidate build: use most recent version of checkout action.
2024-04-07 08:54:58 -07:00
John MacFarlane
cb281aed0e
Bump pandoc-lua-engine to 0.2.1.4.
pandoc-lua-engine-0.2.1.4
2024-04-07 08:40:45 -07:00
John MacFarlane
ab2b5e8bcd
Update AUTHORS.md.
pandoc-cli-3.1.13
3.1.13
2024-04-06 23:27:46 -07:00
John MacFarlane
af338be45b
Bump tls version in stack.yaml
2024-04-06 23:26:06 -07:00
John MacFarlane
409658d16d
Bump to 3.1.13, update changelog and man page
2024-04-06 23:24:24 -07:00
John MacFarlane
21d9970383
Update changelog.
2024-04-06 23:19:36 -07:00
John MacFarlane
5b13a47e33
Use released texmath, typst libraries.
2024-04-06 23:06:52 -07:00
John MacFarlane
c0768e87cf
Org reader: Fix treatment of id property under heading.
...
Cloess #9639 .
2024-04-06 18:24:54 -07:00
Chandrahas77
5e507024b9
fixed typo in doc/org.md ( #9634 )
2024-04-04 23:13:00 -07:00
John MacFarlane
e1f4594272
DokuWiki reader: fix issues with links.
...
- Link text cannot contain formatting (e.g., `//` is not italics).
Closes #9630 .
- An explicitly empty link text (`[[url|]]`) works the same as an omitted
link text. Closes #9632 .
2024-04-04 10:13:02 -07:00
John MacFarlane
c29c18a003
Put $ or $$ around math in csljson output.
...
Closes #9616 .
2024-04-01 12:54:12 -07:00
John MacFarlane
6ee03849aa
Use current dev version of texmath.
2024-03-30 19:32:07 -07:00
Albert Krewinkel
2792d218b1
Require pandoc-lua-marshal 0.2.6
...
Fixes an issue arising when the value of `content` properties
on *BlockQuote*, *Figure*, and *Div* elements was an empty list.
Fixes : #9613
2024-03-29 19:03:05 +01:00
Carlos Scheidegger
e4ac26d255
Update lua-filters.md ( #9611 )
...
Fix formatting of `pandoc.utils.type` usage entry
2024-03-27 12:22:10 -06:00
John MacFarlane
4c16d721d6
ConTeXt writer: fix options order with \externalfigure.
...
The dimensions should come before the class if both are present.
See https://github.com/jgm/pandoc/discussions/9604#discussioncomment-8913491
2024-03-26 09:41:55 -06:00
John MacFarlane
db59b8ed08
Typst writer: put label after Span, not before.
...
Labels get applied to preceding markup item.
2024-03-22 22:38:34 -07:00
John MacFarlane
354e0fd349
Minor comment and indentation fixes.
2024-03-22 16:53:50 -07:00
John MacFarlane
0b28b55902
Typst reader: support Typst 0.11 table features.
...
Colspans, rowspans, table head and foot.
See #9588 .
2024-03-22 16:39:36 -07:00
John MacFarlane
b28dc15817
LaTeX writer: fix math inside strikeout ( closes #9597 ).
2024-03-22 08:50:20 -07:00
John MacFarlane
a70399d7a0
Typst reader: parse cell col/rowspans.
...
TODO:
- Handle table header and footer.
- Assign columns to rows in a way that respects col/rowspans.
2024-03-21 14:40:36 -07:00
John MacFarlane
4c55471851
Fix typo in stack.yaml.
2024-03-21 11:49:21 -07:00
John MacFarlane
1ce61fbd7f
stack.yaml - use typst-symbols 0.1.6.
2024-03-21 11:00:05 -07:00
John MacFarlane
1ce43d8a4b
Typst reader: Further refactoring on the way to improved table support.
2024-03-21 10:59:04 -07:00
John MacFarlane
4f34236ddc
Typst reader: refactor out parseTable.
2024-03-21 10:12:09 -07:00