| Age | Commit message (Collapse) | Author |
|
Allow implicit figures when alt text differs from caption
(in this case, we use an image attribute to add the alt).
Closes #11140.
|
|
Also give a better default if `alt` is not specified, using
the stringified caption rather than the filename.
Partially addresses #11140.
Add failing test case for Markdown writer issue in #11140.
|
|
Also apply hlint suggestions for fewer imports and
moving brackets to avoid $.
|
|
Take wide characters into account when determining the alignment.
|
|
The pagebreak is parsed as a HorizontalRule inside a wrapper Div with class `page-break`.
Closes #11101.
|
|
If we have a table with row/colspans that can rendered as an
approximate pipe table (without row/colspans), and no other table
format is enabled that could render the table, we fall back to
an "approximate" pipe table, with no row/colspans.
Closes #11128.
|
|
[API change] Text.Pandoc.Parsing: New functions `tableWithSpans`,
`tableWithSpans'`, `toTableComponentsWithSpans` and
`toTableComponentsWithSpans'` take a list of lists of
(Blocks, RowSpan, ColSpan) to parse a Table with different RowSpan and
ColSpan values accordingly.
New helper functions `singleRowSpans` and `singleColumnSpans` help set
all RowSpans or ColSpans to be 1 in case the table format only allows
setting one or the other.
|
|
The function converts links to spans. It is used, for example, to avoid
nested links.
The HTML writer used to put the description of nested links into small
caps, but uses a simple *span* now.
|
|
This revises the solution to #9214 in commit 2e8ecb3 in order to
handle a standard Word way of inserting emojis.
Closes #11113.
|
|
|
|
Thus, for example, `{npj} Quantum Information` should translate as
`[npj]{.nocase} Quantum Information`.
Closes #11048.
|
|
A new command line option `--syntax-highlighting` is provided; it takes
the values `none`, `default`, `idiomatic`, a style name, or a path to a
theme file. It replaces the `--no-highlighting`, `--highlighting-style`,
and `--listings` options.
The `writerListings` and `writerHighlightStyle` fields of the
`WriterOptions` type are replaced with `writerHighlightStyle`.
Closes: #10525
|
|
[API change] Text.Pandoc.Parsing: `tableWith` and `tableWith'` now
return a list of lists of Blocks, rather than a list of Blocks, for the
header rows, allowing for multiple header rows.
Closes #10338.
|
|
|
|
|
|
|
|
Closes #11090.
|
|
Add unicode-data dependency for isXIDContinue for this to match the
rust implementation.
Also apply hlint suggestions for redundant $, literal pattern and
moving brackets to avoid $.
|
|
Commit 2c857d3 closed #11047 but was mislabeled as closing #10047.
|
|
Closes #11046.
|
|
due to automatic wrapping.
Also simplify existing code that was meant to do this.
Closes #10047.
|
|
Fixes: #8869
|
|
Closes #11044.
|
|
Certain environments in LaTeX will trigger math mode and can't
occur within math mode: e.g., `align` or `equation`. Previously
we "downshifted" these, parsing an `align` environment as a
Math element with `aligned`, and an `equation` environment as a
regular display math element. With this shift, we put these in
Math inlines but retain the original environments.
This works because:
1) texmath handles these environments just fine,
2) and so does MathJax;
3) when writing LaTeX we detect these environments in Math elements
and emit them verbatim instead of putting them in `$..$` or
`$$..$$`.
Closes #9711. Closes #9296.
|
|
Closes: #10635
|
|
The default template now adds `#+options` lines if non-default settings
are used for the `smart_quotes` and `special_strings` extensions.
|
|
Original test had a poor/misleading title.
|
|
Typst allows things like `smallcaps` to be applied to block-level
content like headings. This produces a type mismatch in pandoc,
so before processing the output of typst-hs, we transform it,
pulling the block-level elements outside of the inline-level
elements.
Closes #11017.
|
|
|
|
Some of the readers (e.g. djot) add "wrapper" divs to hold attributes
for elements that have no slot for attributes in the pandoc AST. With
this change, the HTML reader "unwraps" these wrappers so that the
attributes go on the intended elements.
Closes #11014.
|
|
Add test for #11013. Closes #11013.
|
|
Update the test so it reflects the right output, and fix the
solution.
Really closes #11006.
|
|
These require an additional blank line in some cases.
Closes #11006.
|
|
[API change]
This will prevent unnecessary conversion of units.
Closes #8957.
|
|
Previously fenced divs were not used in this case, causing the writer to fall back to raw HTML.
Closes #10955.
|
|
Org doesn't reliable display these as links if they have hard breaks.
Closes #9000.
|
|
This solves the problem of unwanted capitalization of names
at the beginning of citations in footnotes.
Closes #10983.
|
|
|
|
Closes #10983 by allowing `nocase` spans to be used to suppress
capitalization of initial word in a footnote.
|
|
Closes #10984.
|
|
Previously, the first line of a definition details item always used a
colon and three spaces instead of respecting the tab-stop setting, which
could lead to round-tripping issues.
Likewise, the indentation of continuation paragraphs in definition lists
now matches the two-characters leader of the first line for Markua
output.
Fixes: #10890
|
|
|
|
It was meant to test subsequent author substitution, but the
new chicago-author-date doesn't do this. So we use a different CSL.
|
|
When we updated to the latest chicago-author-date.csl, this test
no longer tested what it was supposed to; so we use a different csl.
|
|
from the latest chicago-author-date.csl. (Note that this goes
from the 17th to the 18th edition.)
Update tests.
|
|
Closes #10965.
|
|
Omit the wrapper sourceCode divs added by pandoc around code blocks.
More intelligently identify which class to use for the one class
allowed in GFM code blocks. If there is a class of form `language-X`,
use `X`; otherwise use the first class other than `sourceCode`.
Closes #10926.
|
|
on ordered lists. Closes #10912.
|
|
Closes #10915
|
|
Closes #7691.
|