aboutsummaryrefslogtreecommitdiff
path: root/src/Text
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-30Typst writer: add native Typst support for `nocite`.Albert Krewinkel
The `nocite` metadata field can now be used to supply additional citations that don't appear in the text, just as with citeproc and LaTeX's bibtex and natbib. Closes: #10680
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-29TikiWiki reader: Use getVerbosity instead of getCommonState.John MacFarlane
2025-07-29LaTeX writer: be more conservative about using `\url`.John MacFarlane
We only use it when the URL is all ASCII, since the `\url` macro causes problems when used with some non-ASCII characters. Closes #8802.
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-28Text.Pandoc.Class: Add `stManager` to CommonState.John MacFarlane
[API change] This allows us to cache the HTTP client manager and reuse it for many requests, instead of creating it again (an expensive operation) for each request. (The documentation for `newManager` advises sharing a single manager between requests.) This fixes a memory leak and performance issue in files with a large number of remote images. Closes #10997.
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-27Docx reader: fix `stringToInteger`.John MacFarlane
It previously converted things like `11ccc` to an integer; now it requires that the whole string be parsable as an integer. Closes #9184.
2025-07-26Ensure that the default template for `xml` is null.John MacFarlane
2025-07-26Associate the `.xml` extension with the XML reader and writer.John MacFarlane
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-25PDF: Improve error readability when pdf-engine is not supported.Albert Krewinkel
Each supported engine is now printed on a line of its own.
2025-07-25PDF: allow `pdflatex-dev` and `lualatex-dev` as PDF enginesAlbert Krewinkel
These are the development versions of the LaTeX binaries; installable, e.g., with `tlmgr install latex-base-dev`. Closes: #10991
2025-07-25T.P.PDF: clean up `makePDF`Albert Krewinkel
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-23Ensure that all modules have explicit export lists.John MacFarlane
2025-07-23Fix incomplete pattern matches from new ImageType constructor.John MacFarlane
2025-07-22T.P.ImageSize: support avif images.John MacFarlane
[API change] New Avif constructor on ImageType. Closes #10979.
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-21Typst: add support for custom and/or translated "Abstract" titlesAlbert Krewinkel
Closes: #9724
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-07-13Remove code duplication around version info.John MacFarlane
Text.Pandoc.App.CommandLineOptions and pandoc-cli/src/pandoc.hs had similar code for generating version information. To avoid duplication, we now export `versionInfo` from Text.Pandoc.App [API change]. (The function is reexported from the non-public module Text.Pandoc.App.CommandLineOptions.) This function has three parameters that can be filled in when it is called by pandoc-cli. This change will make it simpler to revise version information.
2025-07-13Revert "Export `copyrightMessage` from Text.Pandoc.App module."John MacFarlane
This reverts commit 2cf9b55421d7026dac8c45730b8538f13e4bbb78.
2025-07-13Export `copyrightMessage` from Text.Pandoc.App module.John MacFarlane
Export `copyrightMessage` from the unexported module Text.Pandoc.App.CommandLineOptions and reexport from Text.Pandoc.App [API change]. This avoids the need for a duplicated version in pandoc-cli, which can now depend on the library's exported version.
2025-07-13Use hardcoded string "pandoc" for program name in `--version`.John MacFarlane
Per GNU guidelines: https://www.gnu.org/prep/standards/html_node/_002d_002dversion.html
2025-07-13Update `--version` copyright dates.John MacFarlane
Closes #10961.
2025-07-09PDF: Use utf8ToText for LaTeX log messages.John MacFarlane
2025-07-07PDF: make images from MediaBag available in tmp dir...John MacFarlane
for every PDF engine, not just LaTeX/ConTeXt. This is part of the fix for #10911.
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-18Typst writer: rename *numbering* variable to *section-numbering*.Albert Krewinkel
This is the name expected by the default template.
2025-06-16Fix compiler warning.John MacFarlane
2025-06-16DocBook writer: Fixed compiler warning.John MacFarlane
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-08Docx reader: don't add highlighting if highlight color is "none."John MacFarlane
Closes #10900.
2025-06-05ANSI writer: make `--wrap=none` work properly.John MacFarlane
Closes #10898.
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-28Fix whitespace bugs.John MacFarlane
2025-05-28Adding support for sidebars to Asciidoc writerGreg
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.