summaryrefslogtreecommitdiff
path: root/pandoc.cabal
AgeCommit message (Collapse)Author
2023-01-18Use released versions of packages.John MacFarlane
2023-01-17Add some test files to pandoc.cabal.John MacFarlane
2023-01-15Export module `Text.Pandoc.Slides` [API Change]Albert Krewinkel
2023-01-13Require pandoc-types 1.23, update dependencies.John MacFarlane
This fails to build because pandoc-lua-marshal still needs updating.
2023-01-12CI: test with GHC 9.2.5 and 9.4.4Albert Krewinkel
2023-01-11Add ChunkedHTML writer.John MacFarlane
- Add module Text.Pandoc.Writers.ChunkedHTML, exporting writeChunkedHtml [API change]. - Revised API for Text.Pandoc.Chunks. `chunkNext`, `chunkPrev`, `chunkUp` are now just `Maybe Chunk`. - Fix assignment of navigation elements of Chunks. - Strip off anchor portion of next and prev links. - Remove Ord instances for SecInfo, Chunk. - Derive Show, Eq, Generic for ChunkDoc. - Add `chunkSectionNumber`, `chunkUnlisted`. - Automatically unwrap the zip to a directory if an extensionless output file specified. - Incorporate images with relative paths below working dir.
2023-01-11Use jira-wiki-markup 1.5.0Albert Krewinkel
Fixed issues with icon-like sequences at the beginning of words. Fixes: #8511
2022-12-18ConTeXt writer: support syntax highlighting for code.Albert Krewinkel
2022-12-08Use skylighting 0.13.1.2John MacFarlane
2022-11-21Use doctemplates 0.11.John MacFarlane
This avoids a transitive dependency on HsYAML, which we no longer use in pandoc.
2022-11-06Add Text.Pandoc.Chunks.John MacFarlane
This module provides functions to split Pandoc documents into chunks to be rendered in separate files, e.g. one per section. Internal identifiers are rewritten appropriately to point to the new locations. See #6122.
2022-10-31First stab at mtl 2.3 compliance.John MacFarlane
This will no doubt produce a bunch of warnings and hence CI failures, which we'll need to work around with explicit imports.
2022-10-28Use skylighting 0.13.1.1John MacFarlane
2022-10-26Move aeson constraint from cabal.project to pandoc.cabal.John MacFarlane
2022-10-24Rename T.P.Readers.Odt -> T.P.Readers.ODT.John MacFarlane
For consistency with Writers.ODT. Similarly, rename `readOdt` -> `readODT`. [API change]
2022-10-24Rename T.P.Writers.Docbook -> T.P.Writers.DocBook.John MacFarlane
Similarly, rename `writeDocbook` -> `writeDocBook`, for consistency with the DocBook reader's naming. [API change]
2022-10-24Remove sample.lua from data files (#8397)Albert Krewinkel
The file is kept around in the pandoc-lua-engine test-suite. Closes: #8356
2022-10-19Split Text.Pandoc.Version from Text.Pandoc.Shared.John MacFarlane
This new module exports `pandocVersion` and `pandocVersionText`, which are no longer exported from Text.Pandoc.Shared. [API change] Also, we now set the `pandoc-version` variable centrally rather than in the writers. One effect is the man writer now emits a comment with the pandoc version (this was intended before, judging from the template, but it didn't happen because the vairable wasn't set).
2022-10-17EPUB CSS changes.John MacFarlane
With this change, we reduce the amount of inline CSS used for EPUBs. Almost everything is now in the default EPUB CSS (`data/epub.css`), which can be overridden either by putting `epub.css` in the user data directory or by using `--css` on the command line. Inline styles are only used for syntax highlighting (which depends on the style specified, and is only included on pages with highlighted code) and for bibliography formatting (which can depend on the CSL style, and is only used in the page containing the bibliography). Note that, for compatibility with older readers, we don't use flexbox to style `column/columns` divs by default, as we do in HTML. Instead, we use an older method which only works when there are two `column` divs inside a `columns` div. If you need more than two columns and aren't worried about support for older EPUB readers, you can modify the default CSS (there is a comment in the CSS telling you what to do). Closes #8379.
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-15Use skylighting 0.13.1.John 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.
2022-10-08Use texmath 0.12.5.4.John MacFarlane
2022-10-05Require citeproc >= 0.8.0.2.John MacFarlane
2022-10-03Rename T.P.Readers.LaTeX.Types -> T.P.TeX.John MacFarlane
2022-10-03Rename T.P.Network.HTTP -> T.P.URI.John MacFarlane
This is still an unexported internal module. Export `urlEncode`, `escapeURI`, `isURI`, `schemes`, `uriPathToPath`. Re-export `escapeURI` and `isURI` from T.P.Shared (as they were exported before); drop exports of `schemes` and `uriPathToPath` [API change]. With this change, T.P.Class no longer depends on T.P.Shared.
2022-10-03Separate out T.P.Data, T.P.Translations from T.P.Class. (#8348)John MacFarlane
This makes T.P.Class more self-contained, and suitable for extraction into a separate package if desired. [API changes] - T.P.Data is now an exported module, providing `readDataFile`, `readDefaultDataFile` (both formerly provided by T.P.Class), and also `getDataFileNames` (formerly unexported in T.P.App.CommandLineOptions). - T.P.Translations is now an exported module (along with T.P.Translations.Types), providing `readTranslations`, `getTranslations`, `setTranslations`, `translateTerm`, `lookupTerm`, `readTranslations`, `Term(..)`, and `Translations`. - T.P.Class: `readDataFile`, `readDefaultDataFile`, `setTranslations`, and `translateTerm` are no longer exported. `checkUserDataDir` is now exported. - Text.Pandoc now exports Text.Pandoc.Data and `setTranslations` and `translateTerm`.
2022-10-02Add T.P.Citeproc.Name.John MacFarlane
This exports `toName`, which previously had been part of T.P.Citeproc.BibTeX. T.P.Readers.RIS,EndNote can now depend on this module without transitively depending on the LaTeX reader, which is used in T.P.Citeproc.BibTeX. Closes #8345.
2022-09-30Move `--version` handling to pandoc-cli.John MacFarlane
Print flag settings (lua, server) and versions of all relevant packages. Add suffix for nightly builds. Move `nightly` flag from pandoc to pandoc-cli. Closes #8339.
2022-09-30App: move initial input-to-Pandoc code to internal submoduleAlbert Krewinkel
2022-09-30Use released gridtables 0.1.0.0Albert Krewinkel
2022-09-30[API Change] Extract Lua code into new package pandoc-lua-engineAlbert Krewinkel
The flag 'lua53` must now be used with that package if pandoc is to be compiled against Lua 5.3.
2022-09-30[API Change] Change type of Text.Pandoc.Lua.applyFilterAlbert Krewinkel
The module Text.Pandoc.Filter.Lua has been merged into Text.Pandoc.Lua. The function `applyFilter` now has type ``` haskell applyFilter :: (PandocMonad m, MonadIO m) => Environment-> [String]-> FilePath-> Pandoc-> m Pandoc ``` where `Environment` is defined in Text.Pandoc.Filter.Environment.
2022-09-30[API Change] Remove modules T.P.Writers.Custom and T.P.Readers.Custom.Albert Krewinkel
The functions `writeCustom` and `readCustom` are available from module Text.Pandoc.Lua.
2022-09-30[API Change] Export module Text.Pandoc.Class.IOAlbert Krewinkel
The module is useful when defining instances of class PandocMonad for types that are also instances of MonadIO.
2022-09-30[API Change] Export new module Text.Pandoc.ScriptingAlbert Krewinkel
The module contains the central data structure for scripting engines.
2022-09-29Factor out xml-light into an internal library.John MacFarlane
2022-09-29Bump pandoc version to 3.0.John MacFarlane
In light of the package splitting changes.
2022-09-28Require latest released texmathJohn MacFarlane
2022-09-28Use released commonmark-extensions.John MacFarlane
2022-09-28Bump version to 2.20, depend on >= 2.20 in pandoc-cli, pandoc-server.John MacFarlane
2022-09-24cabal file: Remove unused packageAlbert Krewinkel
This was left over from the first Lua CLI implementation.
2022-09-23Fix support for Lua 5.3Albert Krewinkel
2022-09-22Make pandoc behave like a Lua interpreter when called as `pandoc-lua`. (#8311)Albert Krewinkel
2022-09-22Split pandoc-server, pandoc-cli into separate packages. (#8309)John MacFarlane
This also removes the unnecessary Setup.hs from pandoc. Cabal does not need this with build-type 'simple'.
2022-09-20Add T.P.Lua.Reader, T.P.Lua.Writer.John MacFarlane
(Unexported modules, presently.) These contain the definitions of `readCustom` and `writeCustom` that were previously in T.P.Readers.Custom and T.P.Writers.Custom. Motivation is to ensure that all of the Lua-related code is under the T.P.Lua tree. This will make it easier to make pandoc-lua a separate package or put lua support under a flag, if we decide to do that.
2022-09-18Add prefixes to identifiers with `--file-scope`. (#8282)John MacFarlane
This change only affects the case where `--file-scope` is used and more than one file is specified on the command line. In this case, identifiers will be prefixed with a string derived from the file path, to disambiguate them. For example, an identifier `foo` in `contents/file1.txt` will become `contents__file1.txt__foo`. Links will be adjusted accordingly: if `file2.txt` links to `file1.txt#foo`, then the link will be changed to point to `#file1.txt__foo`. Similarly, a link to `file1.txt` will point to `#file1.txt`. A Div with an identifier derived from the file path will be added around each file's content, so that links to files will still work. Closes #6384. [API change]: Text.Pandoc.Shared exports `textToIdentifier`.
2022-09-11Require mime-types 0.1.1Albert Krewinkel
This version has an updated list of media types, which renders some overrides redundant.
2022-09-04T.P.Mime: Base module on package mime-types. (#8277)Albert Krewinkel
The *mime-types* module is a dependency of *http-client* and therefore already a transitive dependency of pandoc.
2022-09-01Require hslua-module-version 1.0.3Albert Krewinkel
This fixes the behavior of Lua "Version" objects under equality comparisons. Fixes: #8267