aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Format.hs
AgeCommit message (Collapse)Author
2025-07-26Associate the `.xml` extension with the XML reader and writer.John MacFarlane
2024-12-27Make pod the default reader for .pod/.pl/.pmEvan Silberman
2024-11-15Text.Pandoc.Format: remove duplicate typst entry (#10388)Caleb Maclennan
2024-09-03Text.Pandoc.Format: change formatFromFilePaths...John MacFarlane
so that it is smarter about URLs. URLs are parsed, and we take the format from the path component, if present. This means that `https://emacs.org/` will be treated as HTML, while `https://emacs.org/sample.org` will be treated as Org. Closes #10141.
2024-07-08Harmonize maintainer email addresses in module headers.Albert Krewinkel
2024-04-25Update copyright dates to 2024.John MacFarlane
2024-02-13Add djot reader and writer.djotJohn MacFarlane
Djot is a light markup syntax (https://djot.net). This patch adds djot as input and output formats. API changes: Add Text.Pandoc.Readers.Djot Add Text.Pandoc.Writers.Djot
2023-06-06Add typst reader.John MacFarlane
New module Text.Pandoc.Readers.Typst [API change].
2023-03-25Add typst writer.John MacFarlane
See #8713.
2023-03-20T.P.Format: add new function `formatFromFilePaths` [API Change] (#8710)Albert Krewinkel
* T.P.Format: export `formatFromFilePaths` [API change] * Lua: add function `pandoc.format.from_path` * Update lua-filters.md * The old T.P.App.FormatHeuristics module has been removed. This is an alternative to #8693.
2023-01-10Update copyright years, it's 2023!Albert Krewinkel
2022-12-20T.P.Format: Monoid, Semigroup instance for ExtensionsConfig.John MacFarlane
2022-12-16Format: add function `diffExtensions`.Albert Krewinkel
2022-12-16Format: use simpler structure for ExtensionsDiff.Albert Krewinkel
2022-10-20Add custom extensions.John MacFarlane
T.P.Extensions [API change]: + Add CustomExtension constructor to Extension. + Remove Bounded, Enum instances for Extension. + Add `extensionsToList` function. + Revise `readExtension` so it can handle CustomExtension, and so that it returns a Text rather than Maybe Text. + Add `showExtension`. T.P.Format: + Revise error checking to handle CustomExtension.
2022-10-16T.P.Parsing: Remove gratuitious renaming of Parsec types.John MacFarlane
We were exporting Parser, ParserT as synonyms of Parsec, ParsecT. There is no good reason for this and it can cause confusion. Also, when possible, we replace imports of Text.Parsec with T.P.Parsing. The idea is to make it easier, at some point, to switch to megaparsec or another parsing engine if we want to. T.P.Parsing new exports: Stream(..), updatePosString, SourceName, Parsec, ParsecT [API change]. Removed exports: Parser, ParserT [API change].
2022-10-15Minor code cleanups.John MacFarlane
2022-10-13FlavoredFormat: add Show, Semigroup, Monad instancesJohn MacFarlane
2022-10-08[API Change] Add new module "Text.Pandoc.Format"Albert Krewinkel
The module provides functions and types for format spec parsing and processing. The function `parseFormatSpec` was moved from Text.Pandoc.Extensions to the new module and renamed to `parseFlavoredFormat`. It now operates in a PandocMonad and is based on the updated types.