aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
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-02Add features to typst base template (take 2).Christopher T. Kenny
New template variables supported: `thanks`, `abstract-title`, `linestretch`, `mathfont`, `codefont`, `linkcolor`, `filecolor`, `citecolor`. Closes #9956, #11076. (This is a new version of f000fa168bd122fee6e67f5a67bdd6d42d173261 which was reverted.)
2025-09-02Change `latex-pos` to `latex-placement`.John MacFarlane
2025-09-01LaTeX writer: control figure placement with attribute (#11094)Sean Soon
If a `latex-pos` attribute is present on a figure, it will be used as the optional positioning hint in LaTeX (e.g. `ht`). With implicit figures, `latex-pos` will be added to the figure (and removed from the image) if it is present on the image. Closes #10369.
2025-08-30Typst reader: properly resolve image paths in included files.John MacFarlane
Closes #11090.
2025-08-27Org reader: improve sub- and superscript parsing.Albert Krewinkel
Sub- and superscript must be preceded by a string in Org mode. Some text preceded by space or at the start of a paragraph was previously parsed incorrectly as sub- or superscript.
2025-08-26HTML reader: don't drop the initial newline in a pre element.John MacFarlane
Closes #11064.
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-26Support header and footer in MAN readerSean Soon
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.