diff options
Diffstat (limited to 'pandoc.cabal')
-rw-r--r-- | pandoc.cabal | 200 |
1 files changed, 103 insertions, 97 deletions
diff --git a/pandoc.cabal b/pandoc.cabal index e3cd7e54f..cd948d253 100644 --- a/pandoc.cabal +++ b/pandoc.cabal @@ -1,6 +1,6 @@ -cabal-version: 2.2 +cabal-version: 2.4 name: pandoc -version: 2.14.0.3 +version: 2.16.2 build-type: Simple license: GPL-2.0-or-later license-file: COPYING.md @@ -11,36 +11,39 @@ bug-reports: https://github.com/jgm/pandoc/issues stability: alpha homepage: https://pandoc.org category: Text -tested-with: GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5, - GHC == 8.8.4, GHC == 8.10.2, GHC == 9.0.1 +tested-with: GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.7, GHC == 9.0.1 synopsis: Conversion between markup formats description: Pandoc is a Haskell library for converting from one markup format to another, and a command-line tool that uses - this library. It can read several dialects of Markdown and - (subsets of) HTML, reStructuredText, LaTeX, DocBook, JATS, - MediaWiki markup, DokuWiki markup, TWiki markup, - TikiWiki markup, Jira markup, Creole 1.0, Haddock markup, - OPML, Emacs Org-Mode, Emacs Muse, txt2tags, ipynb (Jupyter - notebooks), Vimwiki, Word Docx, ODT, EPUB, FictionBook2, - roff man, Textile, BibTeX, BibLaTeX, CSL JSON, - , and CSV, and it can write Markdown, - reStructuredText, XHTML, HTML 5, LaTeX, ConTeXt, DocBook, - JATS, OPML, TEI, OpenDocument, ODT, Word docx, - PowerPoint pptx, RTF, MediaWiki, DokuWiki, XWiki, - ZimWiki, Textile, Jira, roff man, roff ms, plain text, - Emacs Org-Mode, AsciiDoc, Haddock markup, - EPUB (v2 and v3), ipynb, FictionBook2, - InDesign ICML, Muse, CSL JSON, LaTeX beamer slides, - and several kinds of HTML/JavaScript slide shows - (S5, Slidy, Slideous, DZSlides, reveal.js). + this library. The formats it can handle include . - In contrast to most existing tools for converting Markdown - to HTML, pandoc has a modular design: it consists of a set of - readers, which parse text in a given format and produce a - native representation of the document, and a set of writers, - which convert this native representation into a target - format. Thus, adding an input or output format requires - only adding a reader or writer. + - light markup formats (many variants of Markdown, + reStructuredText, AsciiDoc, Org-mode, Muse, Textile, + txt2tags) + - HTML formats (HTML 4 and 5) + - Ebook formats (EPUB v2 and v3, FB2) + - Documentation formats (GNU TexInfo, Haddock) + - Roff formats (man, ms) + - TeX formats (LaTeX, ConTeXt) + - XML formats (DocBook 4 and 5, JATS, TEI Simple, OpenDocument) + - Outline formats (OPML) + - Bibliography formats (BibTeX, BibLaTeX, CSL JSON, CSL YAML) + - Word processor formats (Docx, RTF, ODT) + - Interactive notebook formats (Jupyter notebook ipynb) + - Page layout formats (InDesign ICML) + - Wiki markup formats (MediaWiki, DokuWiki, TikiWiki, TWiki, + Vimwiki, XWiki, ZimWiki, Jira wiki, Creole) + - Slide show formats (LaTeX Beamer, PowerPoint, Slidy, + reveal.js, Slideous, S5, DZSlides) + - Data formats (CSV tables) + - PDF (via external programs such as pdflatex or wkhtmltopdf) + . + Pandoc can convert mathematical content in documents + between TeX, MathML, Word equations, roff eqn, and plain text. + It includes a powerful system for automatic citations + and bibliographies, and it can be customized extensively + using templates, filters, and custom readers and writers + written in Lua. data-files: -- templates data/templates/styles.html @@ -87,6 +90,7 @@ data-files: data/templates/default.epub3 data/templates/article.jats_publishing data/templates/affiliations.jats + data/templates/default.markua -- translations data/translations/*.yaml -- source files for reference.docx @@ -174,12 +178,10 @@ data-files: data/abbreviations -- sample lua custom writer data/sample.lua + -- sample lua custom reader + data/creole.lua -- lua init script data/init.lua - -- pandoc lua module - data/pandoc.lua - -- lua List module - data/pandoc.List.lua -- bash completion template data/bash_completion.tpl -- citeproc @@ -242,6 +244,7 @@ extra-source-files: test/command/sub-file-chapter-1.tex test/command/sub-file-chapter-2.tex test/command/bar.tex + test/command/bar-endinput.tex test/command/yaml-metadata.yaml test/command/3510-subdoc.org test/command/3510-export.latex @@ -293,6 +296,7 @@ extra-source-files: test/tables.ms test/tables.plain test/tables.markdown + test/tables.markua test/tables.mediawiki test/tables.tei test/tables.textile @@ -328,6 +332,7 @@ extra-source-files: test/writer.man test/writer.ms test/writer.markdown + test/writer.markua test/writer.plain test/writer.mediawiki test/writer.textile @@ -376,11 +381,17 @@ extra-source-files: test/docx/*.native test/epub/*.epub test/epub/*.native + test/rtf/*.native + test/rtf/*.rtf test/pptx/*.pptx - test/pptx/*.native + test/pptx/**/*.pptx + test/pptx/**/*.native + test/ipynb/*.native test/ipynb/*.in.native test/ipynb/*.out.native test/ipynb/*.ipynb + test/ipynb/*.out.ipynb + test/ipynb/*.out.html test/txt2tags.t2t test/twiki-reader.twiki test/tikiwiki-reader.tikiwiki @@ -403,31 +414,27 @@ flag trypandoc common common-options default-language: Haskell2010 - build-depends: base >= 4.9 && < 5 + build-depends: base >= 4.12 && < 5 ghc-options: -Wall -fno-warn-unused-do-bind -Wincomplete-record-updates -Wnoncanonical-monad-instances + -Wcpp-undef + -Wincomplete-uni-patterns + -Widentities + -Wpartial-fields + -Wmissing-signatures + -fhide-source-paths + -- -Wmissing-export-lists + + if impl(ghc >= 8.10) + ghc-options: -Wunused-packages - if impl(ghc < 8.4) - hs-source-dirs: prelude - other-modules: Prelude - build-depends: base-compat >= 0.9 - other-extensions: NoImplicitPrelude + if impl(ghc >= 9.0) + ghc-options: -Winvalid-haddock if os(windows) cpp-options: -D_WINDOWS - -- Later: - -- -Wpartial-fields (currently used in Powerpoint writer) - -- -Wmissing-export-lists (currently some Odt modules violate this) - -- -Wredundant-constraints (problematic if we want to support older base) - if impl(ghc >= 8.2) - ghc-options: -Wcpp-undef - if impl(ghc >= 8.4) - ghc-options: -Wincomplete-uni-patterns - -Widentities - -fhide-source-paths - common common-executable import: common-options build-depends: pandoc @@ -437,12 +444,10 @@ common common-executable library import: common-options build-depends: Glob >= 0.7 && < 0.11, - HTTP >= 4000.0.5 && < 4000.4, - HsYAML >= 0.2 && < 0.3, JuicyPixels >= 3.1.6.1 && < 3.4, SHA >= 1.6 && < 1.7, - aeson >= 0.7 && < 1.6, - aeson-pretty >= 0.8.5 && < 0.9, + aeson >= 0.7 && < 2.1, + aeson-pretty >= 0.8.9 && < 0.9, array >= 0.5 && < 0.6, attoparsec >= 0.12 && < 0.15, base64-bytestring >= 0.1 && < 1.3, @@ -451,61 +456,63 @@ library blaze-markup >= 0.8 && < 0.9, bytestring >= 0.9 && < 0.12, case-insensitive >= 1.2 && < 1.3, - citeproc >= 0.4.0.1 && < 0.4.1, - commonmark >= 0.2.1 && < 0.3, - commonmark-extensions >= 0.2.1.2 && < 0.3, + citeproc >= 0.6 && < 0.7, + commonmark >= 0.2.1.1 && < 0.3, + commonmark-extensions >= 0.2.2 && < 0.3, commonmark-pandoc >= 0.2.1.1 && < 0.3, connection >= 0.3.1, containers >= 0.4.2.1 && < 0.7, data-default >= 0.4 && < 0.8, deepseq >= 1.3 && < 1.5, directory >= 1.2.3 && < 1.4, - doclayout >= 0.3.0.1 && < 0.4, - doctemplates >= 0.9 && < 0.10, + doclayout >= 0.3.1.1 && < 0.4, + doctemplates >= 0.10 && < 0.11, emojis >= 0.1 && < 0.2, exceptions >= 0.8 && < 0.11, file-embed >= 0.0 && < 0.1, filepath >= 1.1 && < 1.5, haddock-library >= 1.10 && < 1.11, - hslua >= 1.1 && < 1.4, - hslua-module-path >= 0.1.0 && < 0.2.0, - hslua-module-system >= 0.2 && < 0.3, - hslua-module-text >= 0.2.1 && < 0.4, + hslua >= 2.0.1 && < 2.1, + hslua-marshalling >= 2.0.1 && < 2.1, + hslua-module-path >= 1.0 && < 1.1, + hslua-module-system >= 1.0 && < 1.1, + hslua-module-text >= 1.0 && < 1.1, + hslua-module-version >= 1.0 && < 1.1, http-client >= 0.4.30 && < 0.8, http-client-tls >= 0.2.4 && < 0.4, http-types >= 0.8 && < 0.13, - ipynb >= 0.1 && < 0.2, + ipynb >= 0.2 && < 0.3, jira-wiki-markup >= 1.4 && < 1.5, + lpeg >= 1.0.1 && < 1.1, mtl >= 2.2 && < 2.3, network >= 2.6, network-uri >= 2.6 && < 2.8, - pandoc-types >= 1.22 && < 1.23, + pandoc-lua-marshal >= 0.1.3 && < 0.2, + pandoc-types >= 1.22.1 && < 1.23, parsec >= 3.1 && < 3.2, + pretty >= 1.1 && < 1.2, + pretty-show >= 1.10 && < 1.11, process >= 1.2.3 && < 1.7, random >= 1 && < 1.3, safe >= 0.3.18 && < 0.4, scientific >= 0.3 && < 0.4, - skylighting >= 0.10.5.2 && < 0.10.6, - skylighting-core >= 0.10.5.2 && < 0.10.6, + skylighting >= 0.12.1 && < 0.13, + skylighting-core >= 0.12.1 && < 0.13, split >= 0.2 && < 0.3, syb >= 0.1 && < 0.8, tagsoup >= 0.14.6 && < 0.15, temporary >= 1.1 && < 1.4, - texmath >= 0.12.3 && < 0.12.4, + texmath >= 0.12.3.2 && < 0.12.4, text >= 1.1.1.0 && < 1.3, text-conversions >= 0.3 && < 0.4, - time >= 1.5 && < 1.12, - unicode-transforms >= 0.3 && < 0.4, - unordered-containers >= 0.2 && < 0.3, + time >= 1.5 && < 1.14, + unicode-collation >= 0.1.1 && < 0.2, + unicode-transforms >= 0.3 && < 0.5, xml >= 1.3.12 && < 1.4, xml-conduit >= 1.9.1.1 && < 1.10, - unicode-collation >= 0.1.1 && < 0.2, + yaml >= 0.11 && < 0.12, zip-archive >= 0.2.3.4 && < 0.5, zlib >= 0.5 && < 0.7 - if os(windows) && arch(i386) - build-depends: basement >= 0.0.10, - foundation >= 0.0.23 - -- basement 0.0.9 won't build on 32-bit windows. if !os(windows) build-depends: unix >= 2.4 && < 2.8 if flag(embed_data_files) @@ -553,6 +560,8 @@ library Text.Pandoc.Readers.DokuWiki, Text.Pandoc.Readers.Ipynb, Text.Pandoc.Readers.CSV, + Text.Pandoc.Readers.RTF, + Text.Pandoc.Readers.Custom, Text.Pandoc.Writers, Text.Pandoc.Writers.Native, Text.Pandoc.Writers.Docbook, @@ -619,6 +628,7 @@ library Text.Pandoc.Class.PandocMonad, Text.Pandoc.Class.PandocIO, Text.Pandoc.Class.PandocPure, + Text.Pandoc.Class.Sandbox, Text.Pandoc.Filter.JSON, Text.Pandoc.Filter.Lua, Text.Pandoc.Filter.Path, @@ -680,36 +690,33 @@ library Text.Pandoc.Writers.Markdown.Types, Text.Pandoc.Writers.Markdown.Inline, Text.Pandoc.Writers.Roff, + Text.Pandoc.Writers.Blaze, Text.Pandoc.Writers.Powerpoint.Presentation, Text.Pandoc.Writers.Powerpoint.Output, Text.Pandoc.Lua.ErrorConversion, Text.Pandoc.Lua.Filter, Text.Pandoc.Lua.Global, Text.Pandoc.Lua.Init, - Text.Pandoc.Lua.Marshaling, - Text.Pandoc.Lua.Marshaling.AST, - Text.Pandoc.Lua.Marshaling.AnyValue, - Text.Pandoc.Lua.Marshaling.CommonState, - Text.Pandoc.Lua.Marshaling.Context, - Text.Pandoc.Lua.Marshaling.List, - Text.Pandoc.Lua.Marshaling.MediaBag, - Text.Pandoc.Lua.Marshaling.PandocError, - Text.Pandoc.Lua.Marshaling.ReaderOptions, - Text.Pandoc.Lua.Marshaling.SimpleTable, - Text.Pandoc.Lua.Marshaling.Version, + Text.Pandoc.Lua.Marshal.CommonState, + Text.Pandoc.Lua.Marshal.Context, + Text.Pandoc.Lua.Marshal.PandocError, + Text.Pandoc.Lua.Marshal.ReaderOptions, + Text.Pandoc.Lua.Marshal.Reference, + Text.Pandoc.Lua.Marshal.Sources, Text.Pandoc.Lua.Module.MediaBag, Text.Pandoc.Lua.Module.Pandoc, Text.Pandoc.Lua.Module.System, Text.Pandoc.Lua.Module.Types, Text.Pandoc.Lua.Module.Utils, + Text.Pandoc.Lua.Orphans, Text.Pandoc.Lua.Packages, Text.Pandoc.Lua.PandocLua, Text.Pandoc.Lua.Util, - Text.Pandoc.Lua.Walk, Text.Pandoc.XML.Light, Text.Pandoc.XML.Light.Types, Text.Pandoc.XML.Light.Proc, Text.Pandoc.XML.Light.Output, + Text.Pandoc.Network.HTTP, Text.Pandoc.CSS, Text.Pandoc.CSV, Text.Pandoc.RoffChar, @@ -756,20 +763,20 @@ test-suite test-pandoc bytestring >= 0.9 && < 0.12, containers >= 0.4.2.1 && < 0.7, directory >= 1.2.3 && < 1.4, - doctemplates >= 0.9 && < 0.10, + doctemplates >= 0.10 && < 0.11, exceptions >= 0.8 && < 0.11, filepath >= 1.1 && < 1.5, - hslua >= 1.1 && < 1.4, + hslua >= 2.0 && < 2.1, mtl >= 2.2 && < 2.3, - pandoc-types >= 1.22 && < 1.23, + pandoc-types >= 1.22.1 && < 1.23, process >= 1.2.3 && < 1.7, tasty >= 0.11 && < 1.5, tasty-golden >= 2.3 && < 2.4, tasty-hunit >= 0.9 && < 0.11, - tasty-lua >= 0.2 && < 0.3, + tasty-lua >= 1.0 && < 1.1, tasty-quickcheck >= 0.8 && < 0.11, text >= 1.1.1.0 && < 1.3, - time >= 1.5 && < 1.12, + time >= 1.5 && < 1.14, xml >= 1.3.12 && < 1.4, zip-archive >= 0.2.3.4 && < 0.5 other-modules: Tests.Old @@ -798,6 +805,7 @@ test-suite test-pandoc Tests.Readers.Org.Meta Tests.Readers.Org.Shared Tests.Readers.RST + Tests.Readers.RTF Tests.Readers.Docx Tests.Readers.Odt Tests.Readers.Txt2Tags @@ -821,6 +829,7 @@ test-suite test-pandoc Tests.Writers.Docx Tests.Writers.RST Tests.Writers.TEI + Tests.Writers.Markua Tests.Writers.Muse Tests.Writers.FB2 Tests.Writers.Powerpoint @@ -834,12 +843,9 @@ benchmark benchmark-pandoc main-is: benchmark-pandoc.hs hs-source-dirs: benchmark build-depends: bytestring, - containers, - -- gauge >= 0.2 && < 0.3, - tasty-bench >= 0.2 && <= 0.3, + tasty-bench >= 0.2 && <= 0.4, mtl >= 2.2 && < 2.3, text >= 1.1.1.0 && < 1.3, - time, deepseq -- we increase heap size to avoid benchmarking garbage collection: ghc-options: -rtsopts -with-rtsopts=-A8m -threaded |