aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
7 daysT.P.Error: define displayException for PandocError.John MacFarlane
This is a behavior change, not an API change, since there was already a definition that defaulted to using Show. The change here is that we use renderError for a more human-readable version.
8 daysAllow --extract-media to extract to a tar archive...John MacFarlane
instead of a directory. This happens when the path given has a .tar extension.
11 daysAsciiDoc writer: export spaces inside delimited constructs like emph.John MacFarlane
12 daysDocBook/JATS reader: don't export surrounding space from inline elements.John MacFarlane
Previously we would export leading and trailing space inside elements like emphasis or ulink so they appeared outside the resulting pandoc Inline (Emph or Link). This is not really motivated; DocBook and XML in general treats leading and trailing whitespace in this context as significant. These spaces may casue problems for some output formats, e.g. asciidoc, but these issues should be addressed in the corresponding writers, as they are in the Markdown writer, using Text.Pandoc.Writers.Shared.delimited. Closes #11398.
13 daysPPTX writer: support notes field in metadata for title slide (#11396)Chris Callison-Burch
This adds support for a `notes` field in the YAML metadata block that will be used as speaker notes for the title slide in PowerPoint output. Previously, there was no way to add speaker notes to the title slide since it is generated from metadata rather than from content blocks. The `::: notes` syntax only works for content slides. Example usage: --- title: My Presentation notes: | Welcome everyone to this presentation. Remember to introduce yourself. --- Closes #5844 (for PPTX output). Co-authored-by: Chris Callison-Burch <[email protected]>
2026-01-08Markdown writer: Allow display math to start/end with space.John MacFarlane
This reverts to earlier < 3.7 behavior. Closes #11384.
2026-01-08LaTeX reader: handle more quote macros.John MacFarlane
(From fontspec and ngerman babel.) Closes #6120.
2026-01-07Logging: add `pretty` field to ToJSON instance for LogMessage.John MacFarlane
This just reproduces the output of `logMessage`, for convenience for those who are using the JSON output outside of Haskell.
2026-01-07EPUB writer: don't use footnote backlinks for EPUBv3.John MacFarlane
Here we use aside elements, which are popups, and the backlinks are not needed; in some readers they cause a redundant number to appear, since the reader adds a note number. Standard practice seems to be not to use these.
2026-01-07Docx reader: handle tables without tblGrid.John MacFarlane
Closes #11380.
2026-01-07Fix docx writer: skip directory entries when building media overrides (#11379)You Jiangbin
Pandoc's docx writer was previously adding an `<Override>` for `/word/media/` in `[Content_Types].xml` when the reference doc contains media, which violates OPC rules and causes Word to report corruption.
2026-01-03DocBook reader: support "role" attribute (#11255)Yann Trividic
The `role` attribute is parsed and added to Pandoc AST elements, using a wrapper Div if needed.
2026-01-03Remove redundant check for asciidoc in UnknownReader.John MacFarlane
2026-01-03AsciiDoc writer: use a span with role for SmallCaps.John MacFarlane
Closes #11374.
2026-01-02RTF reader: Improve hyperlink parsing more (#11370)Tuong Nguyen Manh
Both the field instruction and its result may be ungrouped. Closes #10942.
2025-12-30MediaWiki: better handling of inline tags.John MacFarlane
`<mark>`, `<var>`, `<samp>`, and `<kbd>` now produce Code or Span elements with classes, which can be handled by multiple output formats, instead of simply being parsed as raw HTML tags. Closes #11299.
2025-12-29MediaWiki reader: handle non-recognized tags as plain text.John MacFarlane
Partially addresses #11299.
2025-12-29RTF reader: fix bug where list items were...John MacFarlane
...incorporated into a following table. Closes #11364.
2025-12-28ODT reader: Add table row and column spans (#11366)Tuong Nguyen Manh
Parse the number-rows-spanned and number-columns-spanned attributes to create Cells for the Table.
2025-12-27AsciiDoc writer: use doubled delims in more contexts.John MacFarlane
Also escape the `#` character. Closes #11362. An alternative solution, raised in #11362, would be to rely less on escaping and simply always use doubled delimiters. However, there would still be a need for escaping, since one might use a literal `##` (for example)>
2025-12-27RTF reader: Ensure new paragraph on \pard (#11361)Tuong Nguyen Manh
New paragraphs may start with \pard alone without an explicit paragraph break with \par preceding it.
2025-12-24Factor out openURL into T.P.Class.IO.HTTP.John MacFarlane
Unexported module.
2025-12-24openURL without http support: Use throwError rather than error.John MacFarlane
2025-12-24Add http cabal flag.John MacFarlane
This allows pandoc to be compiled without support for making HTTP requests, which is useful when WASM is the target. Closes #10980.
2025-12-24Change PandocHttpError constructor type.John MacFarlane
Now it takes a Text instead of an HttpException as the second argument. [API change] Motivation: if we expose HttpException in the public API, it makes it difficult to provide a version of pandoc that can be compiled to wasm, which currently can't handle the network libraries. See #10980.
2025-12-20MediaWiki reader: add behavior switches support (#11354)Anton Melnikov
MediaWiki format supports [magic words](https://www.mediawiki.org/wiki/Help:Magic_words). These are basically built-in templates. This commit introduces support for behavior switches, which is one of the three types of magic words. They add a field to metadata without producing any text. Signed-off-by: botantony <[email protected]>
2025-12-15PDF: add SOURCE_DATE_EPOCH to verbose env variable infoJohn MacFarlane
2025-12-15Fix typo.John MacFarlane
2025-12-14Markdown reader: fix parsing of inline math (`$...$`) (#11348)benniekiss
Do not allow blank lines before closing `$` delimiter. This brings the parser in line with the documentation. Closes #11311.
2025-12-13DocBook reader: Fix adding wrong metadata (#11347)Tuong Nguyen Manh
Now keep track of the current element stack to only add metadata if inside an appropriate parent element. Closes #11300.
2025-12-12Fix some more imports involving foldl'.John MacFarlane
2025-12-12Fix imports to avoid warning about foldl'.John MacFarlane
`foldl'` is exported by Prelude by base 4.20+. So we need to do some qualified importing to avoid warnings about redundant imports.
2025-12-11Fix compiler warning.John MacFarlane
2025-12-11Remove workaround that had been needed for older ghc versions.John MacFarlane
2025-12-11Remove obsolete comment.John MacFarlane
2025-12-11JATS writer: fix XML output for nested figuresAlbert Krewinkel
Subfigures are now wrapped inside a `<fig-group>` element. Furthermore, figure content that isn't allowed as children of `<fig>` elements, such as raw text, gets wrapped in `<p>` elements to ensure schema-conform XML production. Fixes: #11342
2025-12-11Remove redundant import.John MacFarlane
2025-12-11Markdown writer: use setext for headers containing line breaks...John MacFarlane
...for commonmark. Closes #11341.
2025-12-11Markdown writer: ensure \ line breaks are used for commonmark.John MacFarlane
2025-12-11T.P.Shared: export hasLineBreaks.John MacFarlane
[API change] Formerly defined in the DocBook writer but more generally useful.
2025-12-10Org: don't include 'example' class when parsing org example blocks.John MacFarlane
These are just unmarked code blocks. Closes #11339.
2025-12-09Typst writer: escape hyphens when needed.John MacFarlane
Closes #11334.
2025-12-09Citeproc: avoid adding an extra space at the beginning of a Cite.John MacFarlane
2025-12-07Implement `reset-citation-positions` class on headings.John MacFarlane
When the `reset-citation-positions` class is added to a top-level heading, `--citeproc` will reset position information at that point in the document. This is needed in order to ensure that the first citation in a chapter to a work that has been cited in a previous chapter will not be in abbreviated form. Requires a dependency on a development version of citeproc.
2025-12-05HTML reader: parse inline style elements as RawInline.John MacFarlane
This is a cleaner fix to #10643 than the reverted commit 7fe8c92. Styles are not stripped, but with this change they will not interfere with inline parsing. Closes #11246.
2025-12-05Revert "HTML reader: ignore style tags in the body."John MacFarlane
This reverts commit 7fe8c928212197354196724e9b95b71a854fdca9. See #10643 and #11246.
2025-12-05RST reader: fix definition lists where term ends with `-`.John MacFarlane
This reverts some old code giving special treatment to lines ending in hyphens; I don't understand why it was there, because rst2html does not seem to do this. Closes #11323.
2025-12-04Citeproc.BibTeX: Fix typo affecting `jurisdiction` biblatex type.John MacFarlane
Closes #11321.
2025-12-04Fix biblatex parsing of `@commentary` entries.John MacFarlane
Previously they were skippedas comments due to a bug. Closes #11322.
2025-12-02Texinfo writer: improve handling of certain code blocks.John MacFarlane
MediaWiki, for example, will parse a code block containing formatting as a sequence of Code elements separated by LineBreaks. For this we now use a texinfo example block. Closes #11312.