| Age | Commit message (Collapse) | Author |
|
This was omitted when we allowed this for other boolean flags.
|
|
Closes #9994. The bug affects e.g. ordered lists with bullet
sublists; after the sublist the top-level list reverts to bullets
instead of being properly numbered.
This regression was introduced in version 3.2.1 and was caused by
commit f5531f1.
|
|
Closes #10025.
|
|
Closes #9987.
|
|
|
|
See #9958.
|
|
|
|
|
|
instead of the new isUpperCase/isLowerCase, for portability
across base versions.
|
|
Fixes #9941.
|
|
|
|
In several places we were mistakenly assuming that the BCP 47 code for
Japanese language was `jp`. It is `ja`.
Closes #9938.
|
|
New cli option: `--link-images`. This causes images to be linked
rather than embedded in ODT.
New field in WriterOptions: `writerLinkImages` [API change].
New field in Opt: `optLinkImages` [API change].
Closes #9815.
|
|
Previously we relied on graphicx internals and made global
changes to Gin to force images to be resized if they exceed
textwidth. This approach is brittle and caused problems
with `\includesvg` (see #9660).
The new approach uses a new macro `\pandocbounded` that is
now defined in the LaTeX template. (Thanks here to Falk Hanisch in
https://github.com/mrpiggi/svg/issues/60.)
The LaTeX writer has been changed to enclose `\includegraphics`
and `\includesvg` commands in this macro when they don't explicitly
specify a width or height.
In addition, the writer now adds `keepaspectratio` to the
`\includegraphics` or `\includesvg` options if `height` is specified
without width, or vice versa. Previously, this was set in the preamble
as a global option.
Compatibility issues:
- If custom templates are used with the new LaTeX writer, they will have
to be updated to include the new `\pandocbounded` macro, or an error
will be raised because of the undefined macro.
- Documents that specify explicit dimensions for an image may render
differently, if the dimensions are greater than the line width or
page height. Previously pandoc would shrink these images to fit,
but the new behavior takes the specified dimensions literally.
In addition, pandoc previously always enforced `keepaspectratio`,
even when width and height were both specified, so images with
width and height specified that do not conform to their intrinsic
aspect ratio will appear differently.
Closes #9660.
|
|
Closes #9908.
|
|
In some cases we need to break up a long text run including
both western and East Asian text, so that the punctuation in
the western text doesn't become double-wide.
Closes #9817.
|
|
Unicode characters need not be escaped for html5, and still won't be.
See #9905.
|
|
This patch supports a subset of the functionality of the
sphinxcontrib-bibtex extension to Sphinx. See
<https://sphinxcontrib-bibtex.readthedocs.io/en/latest/quickstart.html>.
Closes #9904.
|
|
E.g., `\kern.1pt`.
Closes #9902.
|
|
Closes #9878.
|
|
It is supposed to replace emojis with their aliases,
but previously this only worked when the emojis were
in a specially marked span.
Note that this change doesn't affect `commonmark` (or `gfm`)
because the relevant code is in commonmark-hs. This will also
need updating.
See #9876.
|
|
|
|
- Turn captioned images into Figure elements. Closes #9391.
- Improve the logic for associating elements with captions.
Closes #9358.
- Ensure that captions that can't be associated with an
element aren't just silently dropped. Closes #9610.
|
|
We'll use this for image captions as well. Word does not really
distinguish these.
|
|
...with width/height. That was a mistaken call in #6936.
Usually when these values disagree, it is because the image
has been resized by a tool that leaves the original exif values
the same, so the width/height metadata are more likely to be
correct that exif width/height.
Closes #9871.
|
|
...and only include it if `english` or `german` is used.
Since 3d8f011, the babel language is not specified as a
class option any more; so now we need to explicitly specify
the language option when we load `selnolig`. Only `german`
and `english` are valid, so we construct the variable
`selnolig-langs` in the writer and include `selnolig` if it
is nonempty.
This should restore proper ligature suppression when
lualatex is used.
Closes #9863. Supersedes #9864.
Thanks to @fkohrt for the initial fix.
|
|
This is motivated mainly by the desire to get tests to work on Windows.
|
|
...the image has the class `inline-svg`. Otherwise just use a
`data` URI as we do with other images.
Closes #9787.
|
|
|
|
|
|
This follows #9376.
|
|
|
|
Pandoc used to emit a `header` class on the `tr` element that forms the table header. This is no longer needed, because `head > tr` will do the same thing.
Similarly, pandoc used to emit `even` and `odd` classes on `tr`s, allowing striped styling. This is no longer needed, because one can use e.g. `tbody tr:nth-child(2n)`.
We now omit these classes, which have a good chance of conflicting with classes used for other things.
Closes #9325.
|
|
|
|
Closes #9185.
|
|
This also fixes a small bug in parsing delimiters in numbered lists,
which led to the default delimiter being used wrongly in some cases.
Closes #8211.
|
|
This is more useful. Use this in OpenXML and HTML writers.
|
|
using `bottomUp` with a faster one using `walk`.
|
|
Task lists are now properly formatted, with no bullet.
In addition, we have removed an expensive generic traverse to
remove Space elements, and replaced it with code in
`inlinesToOpenXML`. This should give better performance; it
also reduces XML size in the metadata, which wasn't previously
affected by the de-Spacing.
TODO: parse this in the reader so that we can have task lists round-trip.
Closes #5198.
|
|
[API change]
This function used to be in T.P.Writers.HTML.
|
|
This extends support for fine-grained properties in Typst.
If the `typst:no-figure` class is present on a Table, the table will not be placed in a figure.
If the `typst:figure:kind` attribute is present, its value will be used for the figure's `kind`.
These features are documented in `doc/typst-property-output.md`.
Closes #9777.
|
|
Closes #5662.
|
|
Also fix tests.
|
|
OpenXML doesn't have a way of indicating column alignments, but
we guess them by looking at the justification property on the
first paragraph of a cell, if there is one.
We take the column alignments from the first body row.
Closes #8551.
|
|
...and not just Runs. This fixes a problem wherein comments
inside insertions or deletions would be ignored. Closes #9833.
|
|
We support both pandoc-style and the style described at
https://support.microsoft.com/en-us/office/insert-a-horizontal-line-9bf172f6-5908-4791-9bb9-2c952197b1a9
Closes #6285.
|
|
This paves the way to supporting horizontal rules in the reader.
We still need to adjust the parser to create HRule appropriately;
so far, this change has no effect, but it's a step on the way
to #6285.
|
|
for resizing figures, table cells, etc. in LaTeX. `\linewidth`,
unlike the others, is sensitive to indented environments like
lists.
Closes #9775.
|
|
The new OpenXML template had spaces for metadata that need
to be filled with OpenXML fragments with the proper shape.
This patch ensures that everything is the right shape.
Closes #9828.
|
|
Closes #8862.
|