aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2025-08-26LaTeX writer: don't invariably insert blanks between blocks.issue7111John MacFarlane
Plain or RawBlock elements should not automatically be followed by blank lines. See #7111
2025-08-24common.latex: add RTL support for LuaTeX engineReuben Thomas
2025-08-24Revert "Add features to typst base template."John MacFarlane
This reverts commit f000fa168bd122fee6e67f5a67bdd6d42d173261.
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-11Use latest dev texmath.John MacFarlane
2025-08-10LaTeX reader: parse `\minisec` as unlisted level 6 headings.Albert Krewinkel
Closes: #10635
2025-08-10ODT Reader: Add table-header-rowsTuong Nguyen Manh
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-06Org writer: disable smart quotes by defaultAlbert Krewinkel
2025-08-06Add `smart_quotes` and `special_strings` extensions for OrgAlbert Krewinkel
Org mode makes a distinction between smart parsing of quotes, and smart parsing of special strings like `...`. The finer grained control over these features is necessary to truthfully reproduce Emacs Org mode behavior. Special strings are enabled by default, while smart quotes are disabled. The behavior of `special_string` is brought closer to the reference implementation in that `\-` is now treated as a soft hyphen.
2025-08-04reference.docx: don't left-align table header rown.west
See #11019. Previously, centering tables in `reference.docx` would leave the header row left-aligned. Why the OOXML 'standard' would allow table elements to be aligned differently from the rest of the table in the first place is anyone's guess.
2025-08-04Update 11013.md (#11020)Joseph Reagle
Original test had a poor/misleading title.
2025-08-03Fix named entity lookup in POD readerEvan Silberman
Translating entities by name ultimately relies on Commonmark.Entity.lookupEntity, which de facto requires the entity name to be followed by a semicolon. Paste a semicolon onto the end of the entity name read from POD to look it up. Fixes #11015
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-29HTML styles: prefix default styles with informative CSS comment (#11002)Albert Krewinkel
Closes #8819
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-26New `xml` format exactly representing a Pandoc AST.massifrg
This adds a reader and writer for an XML format equivalent to `native` and `json`. XML schemas for validation can be found in `tools/pandoc-xml.*`. The format is documented in `doc/xml.md`. API changes: - Add module Text.Pandoc.Readers.XML, exporting `readXML`. - Add module Text.Pandoc.Writers.XML, exporting `writeXML`. A new unexported module Text.Pandoc.XMLFormat is also added.
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-24DocBook reader: Add rowspan support. (#10981)Sean Soon
2025-07-24Org reader: Recognize "fast access" characters in TODO state definitions ↵Ryan Gibb
(#10990)
2025-07-24Add features to typst base template.Christopher Kenny
This implements the changes suggested in #9956, with the exception of the filecolor/urlcolor one. These would require adding some regex to guess the link types. This is theoretically possible to do, but it wasn't clear to me that this is a good thing to put in a default template. Happy to adjust if you have thoughts on this. Closes #9956. Some things to note: I'm converting colors by passing them as content, as I was seeing pandoc escape # if that was included. I set the default fonts for math and code ("raw") to fonts that are bundled with Typst. These need not be those fonts if there are more familiar pandoc preferences.
2025-07-23Ensure that all modules have explicit export lists.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 writer: use startingnumber instead of override...John MacFarlane
for start numbers on ordered lists. Also remove legacy support for override on listitem in the reader. See #10912.
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-10Fix docx golden tests for East Asian default style changes.John MacFarlane
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.