aboutsummaryrefslogtreecommitdiff
path: root/test/command
AgeCommit message (Collapse)Author
2025-09-15Markdown writer: improve handling of implicit figures.John MacFarlane
Allow implicit figures when alt text differs from caption (in this case, we use an image attribute to add the alt). Closes #11140.
2025-09-15RST reader: parse `:alt:` on figure.John MacFarlane
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.
2025-09-15LaTeX writer: Protect VERB in caption (#11139)TuongNM
Also apply hlint suggestions for fewer imports and moving brackets to avoid $.
2025-09-12Markdown reader: Fix simple table alignment (#11136)TuongNM
Take wide characters into account when determining the alignment.
2025-09-10Add support for reading typst pagebreak (#11126)Raymond Berger
The pagebreak is parsed as a HorizontalRule inside a wrapper Div with class `page-break`. Closes #11101.
2025-09-10Markdown writer: use approximate pipe tables when it's the only option.John MacFarlane
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.
2025-09-09RST Reader: Add col spans for simple tablesTuong Nguyen Manh
[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.
2025-09-09T.P.Writers.Shared: add new function `removeLinks`.Albert Krewinkel
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.
2025-09-06Docx reader: better handling of AlternateContent.John MacFarlane
This revises the solution to #9214 in commit 2e8ecb3 in order to handle a standard Word way of inserting emojis. Closes #11113.
2025-09-03Fix test case that changed because of addition of nocase span.John MacFarlane
2025-09-03T.P.Citeproc.BibTeX: Protect case in periodical titles.John MacFarlane
Thus, for example, `{npj} Quantum Information` should translate as `[npj]{.nocase} Quantum Information`. Closes #11048.
2025-09-02Refactor highlighting options [API Change]Albert Krewinkel
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
2025-09-02RST Reader: Support multiple header rows (#11057)TuongNM
[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.
2025-09-02Update default.csl from new chicago-author-date.csl.John MacFarlane
2025-09-02Use latest dev citeproc.John MacFarlane
2025-09-02Change `latex-pos` to `latex-placement`.John MacFarlane
2025-08-30Typst reader: properly resolve image paths in included files.John MacFarlane
Closes #11090.
2025-08-26Typst Writer: Check XID_Continue in identifiersTuong Nguyen Manh
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 $.
2025-08-17Rename command test for 10047 -> 11047.John MacFarlane
Commit 2c857d3 closed #11047 but was mislabeled as closing #10047.
2025-08-17Citeproc: don't move footnotes around em-dashes.John MacFarlane
Closes #11046.
2025-08-17Typst writer: add escapes to prevent inadvertent lists...John MacFarlane
due to automatic wrapping. Also simplify existing code that was meant to do this. Closes #10047.
2025-08-14Org reader: accept quoted values as argument values.Albert Krewinkel
Fixes: #8869
2025-08-12Typst writer: add parens around typst-native year-only citations.John MacFarlane
Closes #11044.
2025-08-11LaTeX reader/writer: change handling of math environments.John MacFarlane
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.
2025-08-10LaTeX reader: parse `\minisec` as unlisted level 6 headings.Albert Krewinkel
Closes: #10635
2025-08-06Org template: add `#+options` lines if necessaryAlbert Krewinkel
The default template now adds `#+options` lines if non-default settings are used for the `smart_quotes` and `special_strings` extensions.
2025-08-04Update 11013.md (#11020)Joseph Reagle
Original test had a poor/misleading title.
2025-08-03Typst reader: handle inline-level show rules on block content.John MacFarlane
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.
2025-08-02Fix test for #11013.John MacFarlane
2025-08-02HTML writer: Unwrap "wrapper" divs.John MacFarlane
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.
2025-08-01Use latest dev citeproc.John MacFarlane
Add test for #11013. Closes #11013.
2025-07-30Fix mistaken attempt to fix #11006.John MacFarlane
Update the test so it reflects the right output, and fix the solution. Really closes #11006.
2025-07-29Asciidoc writer: handle lists with sublists following continuations.John MacFarlane
These require an additional blank line in some cases. Closes #11006.
2025-07-29ImageSize: Add Point and Pica as constructors of ImageSize.John MacFarlane
[API change] This will prevent unnecessary conversion of units. Closes #8957.
2025-07-27Markdown writer: use fenced divs even with empty attributes.Carlos Scheidegger
Previously fenced divs were not used in this case, causing the writer to fall back to raw HTML. Closes #10955.
2025-07-27Org writer: don't wrap link descriptions.John MacFarlane
Org doesn't reliable display these as links if they have hard breaks. Closes #9000.
2025-07-24Use latest dev citeproc.John MacFarlane
This solves the problem of unwanted capitalization of names at the beginning of citations in footnotes. Closes #10983.
2025-07-24Revert a test case that changed due to a reverted citeproc change.John MacFarlane
2025-07-23Use latest dev citeproc.John MacFarlane
Closes #10983 by allowing `nocase` spans to be used to suppress capitalization of initial word in a footnote.
2025-07-22Djot writer: fix duplicate attributes before section headings.John MacFarlane
Closes #10984.
2025-07-22Markdown writer: match indents in definition itemsAlbert Krewinkel
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
2025-07-20Fix a test.John MacFarlane
2025-07-20Fix pandoc-citeproc-64 test.John MacFarlane
It was meant to test subsequent author substitution, but the new chicago-author-date doesn't do this. So we use a different CSL.
2025-07-20Fix citeproc-87 test.John MacFarlane
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.
2025-07-20Use latest dev citeproc and update the default CSL...John MacFarlane
from the latest chicago-author-date.csl. (Note that this goes from the 17th to the 18th edition.) Update tests.
2025-07-14Typst writer: set lang attribute in Divs.John MacFarlane
Closes #10965.
2025-06-20Markdown writer: better handling of pandoc-generated code blocks.John MacFarlane
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.
2025-06-16DocBook reader: be sensitive to startingnumber attribute...John MacFarlane
on ordered lists. Closes #10912.
2025-06-16LaTeX reader: support `\ifmmode`.John MacFarlane
Closes #10915
2025-06-03Docx reader: handle strict OpenXML as well as transitional.John MacFarlane
Closes #7691.