aboutsummaryrefslogtreecommitdiff
path: root/test/command
AgeCommit message (Collapse)Author
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.
2025-06-02Markdown reader: make definition lists behave like other lists.John MacFarlane
If the `four_space_rule` extension is not enabled, figure out the indentation needed for child blocks dynamically, by looking at the first nonspace content after the `:` marker. Previously the four-space rule was always obeyed. Remove the old `compact_definition_lists` extension. This was neded to preserve backwards compatibility after pandoc 1.12 was released, but at this point we can get rid of it. T.P.Extensions: remove `Ext_compact_definition_lists` constructor for `Extension` [API change]. Fix tight/loose detection for definition lists, to conform to the documentation. Closes #10889.
2025-05-28T.P.Writer.Shared gridTable: more grid table fixes.John MacFarlane
Fix headings with colspans. If the heading contains a colspan, we still need to include information in the header line about the colspecs. Fix headerless tables. The top line should encode colspan information. Closes #10855.
2025-05-27HTML writer: use the ID prefix in the ID for the footnotes section.Benjamin Esham
In commit 9190b19fc, we began to use the ID prefix for the <aside> holding the footnotes. In commit 41da8ad9e, we started to use a <section> for this instead and the ID-prefix functionality was lost. This commit resumes using the ID prefix in the ID of this element so that multiple documents can be combined into one without ID conflicts.
2025-05-26Markdown writer: preserve figure attributesNikolay Yakimov
0d2114e introduced a bug where Markdown writer would ignore attributes on the figure if it has class or key-value attributes set. This commit fixes that and adds a regression test. Closes #10867
2025-05-26LaTeX writer: include alt option in `\includegraphics`.John MacFarlane
Closes #6095.
2025-05-26SelfContained: fix handling of empty script element.John MacFarlane
Previously in this case the closing tag was dropped. Closes #10862.
2025-05-17gridTables: properly handle columns with all empty cells.John MacFarlane
See #10848.
2025-05-16Fix problems with gridTable and add tests.John MacFarlane
Closes #10848.
2025-05-15Add failing test for complex grid tables with row/colspans.John MacFarlane
See #10848.
2025-05-15gridTable: more improvements to colspan handling.John MacFarlane
2025-05-15Add a failing test for #10848 grid table.John MacFarlane
2025-05-14T.P.Writers.Shared: New version of `gridTable`.John MacFarlane
This handles row and colspans. Partially addresses #6344. It also ensures that cells won't wrap text in places where it wouldn't normally wrap, even if this means making the cells wider than requested by the colspec. (Closes #9001. Closes 7641.) Parameters are different, so this is a breaking [API change]. Markdown, RST, and Muse writers have been adjusted to use the new `gridTable`.
2025-05-11Org reader: change handling of inline TeX.John MacFarlane
Previously inline TeX was handled in a way that was different from org's own export, and that could lead to information loss. This was particularly noticeable for inline math environments such as `equation`. Previously, an `equation` environment starting at the beginning of a line would create a raw block, splitting up the paragraph containing it (see #10836). On the other hand, an `equation` environment not at the beginning of a line would be turned into regular inline elements representing the math. (This would cause the equation number to go missing and in some cases degrade the math formatting.) Now, we parse all of these as raw "latex" inlines, which will be omitted when converting to formats other than LaTeX (and other formats like pandoc's Markdown that allow raw LaTex). Closes #10836.
2025-05-08DocBook reader: improve handling of literallayout.John MacFarlane
This is now only made a CodeBlock when there is a `monospaced` class. Otherwise it is made a LineBlock. Closes #10825.
2025-04-28Plain writer: Support the four_space_rule extension. (#10813)Manolis Stamatogiannakis
Allows using `-t plain+four_space_rule` to emulate the output of pandoc before #7172. This is useful for users that use pandoc e.g. to autoformat commit messages.
2025-04-26Typst writer: handle equation labels with spaces.John MacFarlane
Closes #10805.
2025-04-25Typst writer: add equation label if math contains `\label{..}`.John MacFarlane
Closes #10805.
2025-04-18OpenDocument writer: fix character styles in footnotes.John MacFarlane
Character styles governing the position of the footnote reference should not be imposed on the footnote text. Closes #10791.
2025-04-14LaTeX reader: disable ligatures inside `\texttt`.John MacFarlane
Closes #10781.
2025-04-05Markdown writer: improve use of implicit figures when possible.John MacFarlane
Closes #10758. When the alt differs from the caption, but only as regards formatting, we still use an implicit figure.
2025-04-04Markdown writer: render a figure with Para caption as implicit figure.John MacFarlane
Also, when falling back to a Div with class `figure` for a figure that can't be represented any other way, include a Div with class `caption` containing the caption. Closes #10755.
2025-04-01Typst writer: support `mark` class on spans.John MacFarlane
Closes #10747.
2025-03-29Org reader: don't include newlines in inine code/verbatim.John MacFarlane
Convert newlines to spaces as we do in other formats. Closes #10730.
2025-03-23Use the most compatible form for roff escapes.John MacFarlane
This affects T.P.RoffChar, T.P.Writers.Roff, and the Man and Ms writers. That is, `\(xy` instead of `\[xy]`. This was the original AT&T troff form and is the most widely supported. The bracketed form causes problem for some tools, e.g. `makewhatis` on macOS. Closes #10716.
2025-03-22Commonmark Reader: handle GFM math irregularity with braces.John MacFarlane
In GFM, you need to use `\\{` rather than `\{` for a literal brace. Closes #10631.
2025-03-21MediaWiki reader/writer: allow definition on same line as term.John MacFarlane
Closes #10708.
2025-03-19Skip at most one argument to LaTeX tabular newline (#10707)silby
In LaTeX's tabular environment, the tabular newline takes an optional argument that we skip. But it only takes a single optional argument, and any further square-bracketed text that follows shouldn't be skipped. Fixes #7512, and also adds a test for the original problem raised in that issue which was already fixed at some point.
2025-03-15Update tests for previous commit (protecting phantomsection).John MacFarlane
2025-03-14Markdown reader: remove some misguided list fanciness.John MacFarlane
Previously we tried to handle things like commented out list items: - one <!-- - two --> - three and also things like: - one `and - two` and But the code we added to handle these cases caused problems with other, more straightforward things, like: - one - ``` code ``` - three So we are rolling back all the fanciness, so that the markdown parser now behaves more like the commonmark parser, in which indicators of block-level structure always take priority over indicators of inline structure. Closes #9865. Closes #7778. See also #5628.
2025-03-07Markdown reader: fixed `escapedChar'` parser.John MacFarlane
It should not accept escaped newlines. See #10672.
2025-03-05Disable citations extension in writers if `--citeproc` is used.John MacFarlane
Otherwise we get undesirable results, as the format's native citation mechanism is used instead of (or in addition to) the citeproc-generated citations. Closes #10662.