2017-09-07 10:13:40 -07:00
|
|
|
name: pandoc
|
2018-05-10 21:45:29 -07:00
|
|
|
version: 2.2.1
|
2017-09-07 10:13:40 -07:00
|
|
|
cabal-version: >= 1.10
|
|
|
|
build-type: Custom
|
2018-03-16 08:41:26 -07:00
|
|
|
license: GPL-2
|
2017-09-07 10:13:40 -07:00
|
|
|
license-file: COPYING.md
|
2018-01-05 20:19:47 +01:00
|
|
|
copyright: (c) 2006-2018 John MacFarlane
|
2017-09-07 10:13:40 -07:00
|
|
|
author: John MacFarlane <jgm@berkeley.edu>
|
|
|
|
maintainer: John MacFarlane <jgm@berkeley.edu>
|
|
|
|
bug-reports: https://github.com/jgm/pandoc/issues
|
|
|
|
stability: alpha
|
2018-03-07 12:37:53 -05:00
|
|
|
homepage: https://pandoc.org
|
2017-09-07 10:13:40 -07:00
|
|
|
category: Text
|
2018-03-18 09:20:21 -07:00
|
|
|
tested-with: GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.1
|
2017-09-07 10:13:40 -07:00
|
|
|
synopsis: Conversion between markup formats
|
|
|
|
description: Pandoc is a Haskell library for converting from one markup
|
2007-07-12 08:29:36 +00:00
|
|
|
format to another, and a command-line tool that uses
|
2015-12-13 12:17:28 -08:00
|
|
|
this library. It can read several dialects of Markdown and
|
2017-12-21 22:20:38 -08:00
|
|
|
(subsets of) HTML, reStructuredText, LaTeX, DocBook, JATS,
|
2017-10-26 16:30:37 -07:00
|
|
|
MediaWiki markup, TWiki markup, TikiWiki markup, Creole 1.0,
|
|
|
|
Haddock markup, OPML, Emacs Org-Mode, Emacs Muse, txt2tags,
|
2018-04-26 12:35:02 -07:00
|
|
|
Vimwiki, Word Docx, ODT, EPUB, FictionBook2, and Textile,
|
|
|
|
and it can write Markdown, reStructuredText, XHTML, HTML 5,
|
|
|
|
LaTeX, ConTeXt, DocBook, JATS, OPML, TEI, OpenDocument,
|
|
|
|
ODT, Word docx, RTF, MediaWiki, DokuWiki, ZimWiki, Textile,
|
|
|
|
groff man, groff ms, plain text, Emacs Org-Mode, AsciiDoc,
|
2017-10-26 16:30:37 -07:00
|
|
|
Haddock markup, EPUB (v2 and v3), FictionBook2, InDesign
|
2017-12-11 21:37:52 -08:00
|
|
|
ICML, Muse, LaTeX beamer slides, PowerPoint, and several
|
|
|
|
kinds of HTML/JavaScript slide shows (S5, Slidy, Slideous,
|
|
|
|
DZSlides, reveal.js).
|
2007-07-12 08:29:36 +00:00
|
|
|
.
|
2015-12-13 12:17:28 -08:00
|
|
|
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,
|
2007-07-12 08:29:36 +00:00
|
|
|
which convert this native representation into a target
|
|
|
|
format. Thus, adding an input or output format requires
|
|
|
|
only adding a reader or writer.
|
2017-09-07 10:13:40 -07:00
|
|
|
data-files:
|
2009-12-31 01:11:13 +00:00
|
|
|
-- templates
|
2017-01-25 21:51:26 +01:00
|
|
|
data/templates/default.html4
|
2014-08-13 11:16:50 -07:00
|
|
|
data/templates/default.html5
|
2017-01-26 22:40:57 +01:00
|
|
|
data/templates/default.docbook4
|
2016-05-01 23:02:22 -07:00
|
|
|
data/templates/default.docbook5
|
2017-03-28 09:36:07 +02:00
|
|
|
data/templates/default.jats
|
2016-01-21 15:31:12 -08:00
|
|
|
data/templates/default.tei
|
2014-08-13 11:16:50 -07:00
|
|
|
data/templates/default.opendocument
|
|
|
|
data/templates/default.icml
|
|
|
|
data/templates/default.opml
|
|
|
|
data/templates/default.latex
|
|
|
|
data/templates/default.context
|
|
|
|
data/templates/default.texinfo
|
|
|
|
data/templates/default.man
|
2017-03-15 21:04:14 +01:00
|
|
|
data/templates/default.ms
|
2014-08-13 11:16:50 -07:00
|
|
|
data/templates/default.markdown
|
2017-03-10 13:16:27 +04:00
|
|
|
data/templates/default.muse
|
2015-06-02 13:23:32 +02:00
|
|
|
data/templates/default.commonmark
|
2014-08-13 11:16:50 -07:00
|
|
|
data/templates/default.rst
|
|
|
|
data/templates/default.plain
|
|
|
|
data/templates/default.mediawiki
|
2014-08-13 16:56:57 -07:00
|
|
|
data/templates/default.dokuwiki
|
2016-06-28 23:11:42 -07:00
|
|
|
data/templates/default.zimwiki
|
2014-08-13 11:16:50 -07:00
|
|
|
data/templates/default.rtf
|
|
|
|
data/templates/default.s5
|
|
|
|
data/templates/default.slidy
|
|
|
|
data/templates/default.slideous
|
|
|
|
data/templates/default.revealjs
|
|
|
|
data/templates/default.dzslides
|
|
|
|
data/templates/default.asciidoc
|
|
|
|
data/templates/default.haddock
|
|
|
|
data/templates/default.textile
|
|
|
|
data/templates/default.org
|
2017-01-26 20:39:32 +01:00
|
|
|
data/templates/default.epub2
|
2014-08-13 11:16:50 -07:00
|
|
|
data/templates/default.epub3
|
2017-08-11 11:56:54 -07:00
|
|
|
-- translations
|
2017-08-12 12:17:38 -07:00
|
|
|
data/translations/*.yaml
|
2015-03-28 14:22:04 -07:00
|
|
|
-- source files for reference.docx
|
|
|
|
data/docx/[Content_Types].xml
|
|
|
|
data/docx/_rels/.rels
|
|
|
|
data/docx/docProps/app.xml
|
|
|
|
data/docx/docProps/core.xml
|
|
|
|
data/docx/word/document.xml
|
|
|
|
data/docx/word/fontTable.xml
|
2017-12-28 10:31:37 -08:00
|
|
|
data/docx/word/comments.xml
|
2015-03-28 14:22:04 -07:00
|
|
|
data/docx/word/footnotes.xml
|
|
|
|
data/docx/word/numbering.xml
|
|
|
|
data/docx/word/settings.xml
|
|
|
|
data/docx/word/webSettings.xml
|
|
|
|
data/docx/word/styles.xml
|
|
|
|
data/docx/word/_rels/document.xml.rels
|
|
|
|
data/docx/word/_rels/footnotes.xml.rels
|
|
|
|
data/docx/word/theme/theme1.xml
|
|
|
|
-- source files for reference.odt
|
|
|
|
data/odt/mimetype
|
|
|
|
data/odt/manifest.rdf
|
|
|
|
data/odt/styles.xml
|
|
|
|
data/odt/content.xml
|
|
|
|
data/odt/meta.xml
|
|
|
|
data/odt/settings.xml
|
|
|
|
data/odt/Configurations2/accelerator/current.xml
|
|
|
|
data/odt/Thumbnails/thumbnail.png
|
|
|
|
data/odt/META-INF/manifest.xml
|
2017-12-10 11:05:21 -05:00
|
|
|
-- source files for reference.pptx
|
|
|
|
data/pptx/_rels/.rels
|
|
|
|
data/pptx/docProps/app.xml
|
|
|
|
data/pptx/docProps/core.xml
|
|
|
|
data/pptx/ppt/slideLayouts/_rels/slideLayout1.xml.rels
|
2017-12-28 11:03:34 -08:00
|
|
|
data/pptx/ppt/slideLayouts/_rels/slideLayout2.xml.rels
|
2017-12-10 11:05:21 -05:00
|
|
|
data/pptx/ppt/slideLayouts/_rels/slideLayout3.xml.rels
|
2017-12-28 11:03:34 -08:00
|
|
|
data/pptx/ppt/slideLayouts/_rels/slideLayout4.xml.rels
|
2017-12-10 11:05:21 -05:00
|
|
|
data/pptx/ppt/slideLayouts/_rels/slideLayout5.xml.rels
|
2017-12-28 11:03:34 -08:00
|
|
|
data/pptx/ppt/slideLayouts/_rels/slideLayout6.xml.rels
|
2017-12-10 11:05:21 -05:00
|
|
|
data/pptx/ppt/slideLayouts/_rels/slideLayout7.xml.rels
|
|
|
|
data/pptx/ppt/slideLayouts/_rels/slideLayout8.xml.rels
|
2017-12-28 11:03:34 -08:00
|
|
|
data/pptx/ppt/slideLayouts/_rels/slideLayout9.xml.rels
|
|
|
|
data/pptx/ppt/slideLayouts/_rels/slideLayout10.xml.rels
|
2017-12-10 11:05:21 -05:00
|
|
|
data/pptx/ppt/slideLayouts/_rels/slideLayout11.xml.rels
|
2017-12-28 11:03:34 -08:00
|
|
|
data/pptx/ppt/slideLayouts/slideLayout1.xml
|
2017-12-10 11:05:21 -05:00
|
|
|
data/pptx/ppt/slideLayouts/slideLayout2.xml
|
|
|
|
data/pptx/ppt/slideLayouts/slideLayout3.xml
|
2017-12-28 11:03:34 -08:00
|
|
|
data/pptx/ppt/slideLayouts/slideLayout4.xml
|
2017-12-10 11:05:21 -05:00
|
|
|
data/pptx/ppt/slideLayouts/slideLayout5.xml
|
2017-12-28 11:03:34 -08:00
|
|
|
data/pptx/ppt/slideLayouts/slideLayout6.xml
|
2017-12-10 11:05:21 -05:00
|
|
|
data/pptx/ppt/slideLayouts/slideLayout7.xml
|
2017-12-28 11:03:34 -08:00
|
|
|
data/pptx/ppt/slideLayouts/slideLayout8.xml
|
|
|
|
data/pptx/ppt/slideLayouts/slideLayout9.xml
|
2017-12-10 11:05:21 -05:00
|
|
|
data/pptx/ppt/slideLayouts/slideLayout10.xml
|
2017-12-28 11:03:34 -08:00
|
|
|
data/pptx/ppt/slideLayouts/slideLayout11.xml
|
2017-12-10 11:05:21 -05:00
|
|
|
data/pptx/ppt/_rels/presentation.xml.rels
|
|
|
|
data/pptx/ppt/theme/theme1.xml
|
|
|
|
data/pptx/ppt/presProps.xml
|
|
|
|
data/pptx/ppt/slides/_rels/slide1.xml.rels
|
|
|
|
data/pptx/ppt/slides/_rels/slide2.xml.rels
|
|
|
|
data/pptx/ppt/slides/slide2.xml
|
|
|
|
data/pptx/ppt/slides/slide1.xml
|
|
|
|
data/pptx/ppt/viewProps.xml
|
|
|
|
data/pptx/ppt/tableStyles.xml
|
|
|
|
data/pptx/ppt/slideMasters/_rels/slideMaster1.xml.rels
|
|
|
|
data/pptx/ppt/slideMasters/slideMaster1.xml
|
|
|
|
data/pptx/ppt/presentation.xml
|
2018-02-17 09:40:39 -05:00
|
|
|
data/pptx/ppt/notesMasters/_rels/notesMaster1.xml.rels
|
|
|
|
data/pptx/ppt/notesMasters/notesMaster1.xml
|
|
|
|
data/pptx/ppt/notesSlides/_rels/notesSlide1.xml.rels
|
|
|
|
data/pptx/ppt/notesSlides/notesSlide1.xml
|
2018-02-18 18:42:32 -05:00
|
|
|
data/pptx/ppt/notesSlides/_rels/notesSlide2.xml.rels
|
|
|
|
data/pptx/ppt/notesSlides/notesSlide2.xml
|
2018-02-17 09:40:39 -05:00
|
|
|
data/pptx/ppt/theme/theme2.xml
|
2017-12-10 11:05:21 -05:00
|
|
|
data/pptx/[Content_Types].xml
|
2015-05-28 18:15:01 -07:00
|
|
|
-- stylesheet for EPUB writer
|
|
|
|
data/epub.css
|
|
|
|
-- data for dzslides writer
|
|
|
|
data/dzslides/template.html
|
2017-03-16 22:16:41 +01:00
|
|
|
-- default abbreviations file
|
|
|
|
data/abbreviations
|
2015-05-28 18:15:01 -07:00
|
|
|
-- sample lua custom writer
|
|
|
|
data/sample.lua
|
2017-12-06 20:45:38 +01:00
|
|
|
-- lua init script
|
|
|
|
data/init.lua
|
2017-03-20 15:17:03 +01:00
|
|
|
-- pandoc lua module
|
|
|
|
data/pandoc.lua
|
2017-11-29 01:20:01 +01:00
|
|
|
-- lua List module
|
2017-12-02 23:07:29 +01:00
|
|
|
data/pandoc.List.lua
|
2015-08-13 15:24:50 -07:00
|
|
|
-- bash completion template
|
|
|
|
data/bash_completion.tpl
|
2017-03-30 16:43:17 +02:00
|
|
|
-- jats csl
|
|
|
|
data/jats.csl
|
2015-05-28 18:15:01 -07:00
|
|
|
-- documentation
|
2016-07-20 14:12:57 +02:00
|
|
|
MANUAL.txt, COPYRIGHT
|
2017-09-07 10:13:40 -07:00
|
|
|
extra-source-files:
|
2015-05-28 18:15:01 -07:00
|
|
|
-- documentation
|
2017-10-17 20:30:20 -07:00
|
|
|
INSTALL.md, AUTHORS.md, README.md,
|
|
|
|
CONTRIBUTING.md, BUGS, changelog,
|
2015-07-02 22:09:04 -07:00
|
|
|
man/pandoc.1
|
2015-11-16 07:02:04 -08:00
|
|
|
-- stack build plan
|
|
|
|
stack.yaml
|
2015-07-02 08:01:22 -07:00
|
|
|
-- files needed to build man page
|
2017-11-11 15:26:24 -08:00
|
|
|
man/manfilter.lua
|
2015-07-02 08:01:22 -07:00
|
|
|
man/pandoc.1.template
|
|
|
|
-- trypandoc
|
2014-08-17 16:11:09 -07:00
|
|
|
trypandoc/Makefile
|
|
|
|
trypandoc/index.html
|
2008-08-09 23:45:40 +00:00
|
|
|
-- tests
|
2017-02-04 12:56:30 +01:00
|
|
|
test/bodybg.gif
|
|
|
|
test/*.native
|
2017-02-04 21:31:48 +01:00
|
|
|
test/command/*.md
|
2017-08-10 18:26:06 -07:00
|
|
|
test/command/3533-rst-csv-tables.csv
|
2017-08-27 17:01:24 -07:00
|
|
|
test/command/3880.txt
|
2017-03-16 22:31:36 +01:00
|
|
|
test/command/abbrevs
|
2017-04-20 11:11:01 +02:00
|
|
|
test/command/SVG_logo-without-xml-declaration.svg
|
|
|
|
test/command/SVG_logo.svg
|
|
|
|
test/command/corrupt.svg
|
|
|
|
test/command/inkscape-cube.svg
|
2017-03-27 22:03:38 +02:00
|
|
|
test/command/sub-file-chapter-1.tex
|
|
|
|
test/command/sub-file-chapter-2.tex
|
2017-05-14 12:45:31 +02:00
|
|
|
test/command/3510-subdoc.org
|
|
|
|
test/command/3510-export.latex
|
|
|
|
test/command/3510-src.hs
|
2017-10-16 22:03:57 -07:00
|
|
|
test/command/3971b.tex
|
2017-02-04 12:56:30 +01:00
|
|
|
test/docbook-reader.docbook
|
|
|
|
test/docbook-xref.docbook
|
|
|
|
test/html-reader.html
|
|
|
|
test/opml-reader.opml
|
|
|
|
test/haddock-reader.haddock
|
|
|
|
test/insert
|
|
|
|
test/lalune.jpg
|
|
|
|
test/movie.jpg
|
|
|
|
test/media/rId25.jpg
|
|
|
|
test/media/rId26.jpg
|
|
|
|
test/media/rId27.jpg
|
|
|
|
test/latex-reader.latex
|
|
|
|
test/textile-reader.textile
|
|
|
|
test/markdown-reader-more.txt
|
|
|
|
test/markdown-citations.txt
|
|
|
|
test/textile-reader.textile
|
|
|
|
test/mediawiki-reader.wiki
|
2017-06-19 16:15:12 -04:00
|
|
|
test/vimwiki-reader.wiki
|
2017-10-29 14:01:39 -07:00
|
|
|
test/creole-reader.txt
|
|
|
|
test/creole-reader.native
|
2017-02-04 12:56:30 +01:00
|
|
|
test/rst-reader.rst
|
2017-12-20 13:54:02 +13:00
|
|
|
test/jats-reader.xml
|
2017-02-04 12:56:30 +01:00
|
|
|
test/s5-basic.html
|
|
|
|
test/s5-fancy.html
|
|
|
|
test/s5-fragment.html
|
|
|
|
test/s5-inserts.html
|
|
|
|
test/tables.context
|
|
|
|
test/tables.docbook4
|
|
|
|
test/tables.docbook5
|
2017-03-28 09:51:30 +02:00
|
|
|
test/tables.jats
|
2017-02-04 12:56:30 +01:00
|
|
|
test/tables.dokuwiki
|
|
|
|
test/tables.zimwiki
|
|
|
|
test/tables.icml
|
|
|
|
test/tables.html4
|
|
|
|
test/tables.html5
|
|
|
|
test/tables.latex
|
|
|
|
test/tables.man
|
2017-03-15 21:04:14 +01:00
|
|
|
test/tables.ms
|
2017-02-04 12:56:30 +01:00
|
|
|
test/tables.plain
|
|
|
|
test/tables.markdown
|
|
|
|
test/tables.mediawiki
|
|
|
|
test/tables.tei
|
|
|
|
test/tables.textile
|
|
|
|
test/tables.opendocument
|
|
|
|
test/tables.org
|
|
|
|
test/tables.asciidoc
|
|
|
|
test/tables.haddock
|
|
|
|
test/tables.texinfo
|
|
|
|
test/tables.rst
|
|
|
|
test/tables.rtf
|
|
|
|
test/tables.txt
|
|
|
|
test/tables.fb2
|
2017-03-10 13:16:27 +04:00
|
|
|
test/tables.muse
|
2017-12-27 10:48:19 -08:00
|
|
|
test/tables.custom
|
2017-02-04 12:56:30 +01:00
|
|
|
test/testsuite.txt
|
|
|
|
test/writer.latex
|
|
|
|
test/writer.context
|
|
|
|
test/writer.docbook4
|
|
|
|
test/writer.docbook5
|
2017-03-28 09:51:30 +02:00
|
|
|
test/writer.jats
|
2017-02-04 12:56:30 +01:00
|
|
|
test/writer.html4
|
|
|
|
test/writer.html5
|
|
|
|
test/writer.man
|
2017-03-15 21:04:14 +01:00
|
|
|
test/writer.ms
|
2017-02-04 12:56:30 +01:00
|
|
|
test/writer.markdown
|
|
|
|
test/writer.plain
|
|
|
|
test/writer.mediawiki
|
|
|
|
test/writer.textile
|
|
|
|
test/writer.opendocument
|
|
|
|
test/writer.org
|
|
|
|
test/writer.asciidoc
|
|
|
|
test/writer.haddock
|
|
|
|
test/writer.rst
|
|
|
|
test/writer.icml
|
|
|
|
test/writer.rtf
|
|
|
|
test/writer.tei
|
|
|
|
test/writer.texinfo
|
|
|
|
test/writer.fb2
|
|
|
|
test/writer.opml
|
|
|
|
test/writer.dokuwiki
|
|
|
|
test/writer.zimwiki
|
2017-03-10 13:16:27 +04:00
|
|
|
test/writer.muse
|
2017-12-27 10:48:19 -08:00
|
|
|
test/writer.custom
|
2017-02-04 12:56:30 +01:00
|
|
|
test/writers-lang-and-dir.latex
|
|
|
|
test/writers-lang-and-dir.context
|
|
|
|
test/dokuwiki_inline_formatting.dokuwiki
|
|
|
|
test/lhs-test.markdown
|
|
|
|
test/lhs-test.markdown+lhs
|
|
|
|
test/lhs-test.rst
|
|
|
|
test/lhs-test.rst+lhs
|
|
|
|
test/lhs-test.latex
|
|
|
|
test/lhs-test.latex+lhs
|
|
|
|
test/lhs-test.html
|
|
|
|
test/lhs-test.html+lhs
|
|
|
|
test/lhs-test.fragment.html+lhs
|
|
|
|
test/pipe-tables.txt
|
|
|
|
test/dokuwiki_external_images.dokuwiki
|
|
|
|
test/dokuwiki_external_images.native
|
|
|
|
test/dokuwiki_multiblock_table.dokuwiki
|
|
|
|
test/dokuwiki_multiblock_table.native
|
|
|
|
test/fb2/*.markdown
|
|
|
|
test/fb2/*.fb2
|
|
|
|
test/fb2/images-embedded.html
|
|
|
|
test/fb2/images-embedded.fb2
|
|
|
|
test/fb2/test-small.png
|
2018-04-26 22:33:18 +03:00
|
|
|
test/fb2/reader/*.fb2
|
|
|
|
test/fb2/reader/*.native
|
2017-02-04 12:56:30 +01:00
|
|
|
test/fb2/test.jpg
|
|
|
|
test/docx/*.docx
|
2018-01-27 08:00:25 -05:00
|
|
|
test/docx/golden/*.docx
|
2017-02-04 12:56:30 +01:00
|
|
|
test/docx/*.native
|
|
|
|
test/epub/*.epub
|
|
|
|
test/epub/*.native
|
Powerpoint writer tests: New test framework for pptx.
Previously we had tested certain properties of the output PowerPoint
slides. Corruption, though, comes as the result of a numebr of
interrelated issues in the output pptx archive. This is a new
approach, which compares the output of the Powerpoint writer with
files that we know to (a) not be corrupt, and (b) to show the desired
output behavior (details below). This commit introduces three tests
using the new framework. More will follow.
The test procedure: given a native file and a pptx file, we generate a
pptx archive from the native file, and then test:
1. Whether the same files are in the two archives
2. Whether each of the contained xml files is the same. (We skip time
entries in `docProps/core.xml`, since these are derived from IO. We
just check to make sure that they're there in the same way in both
files.)
3. Whether each of the media files is the same.
Note that steps 2 and 3, though they compare multiple files, are one
test each, since the number of files depends on the input file (if
there is a failure, it will only report the first failed file
comparison in the test failure).
2018-01-21 00:25:03 -05:00
|
|
|
test/pptx/*.pptx
|
|
|
|
test/pptx/*.native
|
2017-02-04 12:56:30 +01:00
|
|
|
test/txt2tags.t2t
|
|
|
|
test/twiki-reader.twiki
|
2017-07-21 01:09:54 -07:00
|
|
|
test/tikiwiki-reader.tikiwiki
|
2017-02-04 12:56:30 +01:00
|
|
|
test/odt/odt/*.odt
|
|
|
|
test/odt/markdown/*.md
|
|
|
|
test/odt/native/*.native
|
2017-04-14 23:24:52 +02:00
|
|
|
test/lua/*.lua
|
2017-09-07 10:13:40 -07:00
|
|
|
source-repository head
|
2011-02-05 10:34:55 -08:00
|
|
|
type: git
|
2011-02-05 10:38:25 -08:00
|
|
|
location: git://github.com/jgm/pandoc.git
|
2011-02-05 10:34:55 -08:00
|
|
|
|
2017-09-07 10:13:40 -07:00
|
|
|
flag static
|
2017-09-04 17:07:20 -07:00
|
|
|
Description: Use static linking for pandoc executable.
|
|
|
|
Default: False
|
|
|
|
|
2017-09-07 10:13:40 -07:00
|
|
|
flag embed_data_files
|
2012-12-29 17:44:02 -08:00
|
|
|
Description: Embed data files in binary for relocatable executable.
|
|
|
|
Default: False
|
2006-10-17 14:22:29 +00:00
|
|
|
|
2017-09-07 10:13:40 -07:00
|
|
|
flag trypandoc
|
2014-08-17 16:11:09 -07:00
|
|
|
Description: Build trypandoc cgi executable.
|
|
|
|
Default: False
|
|
|
|
|
2017-09-07 10:13:40 -07:00
|
|
|
flag network-uri
|
2014-12-19 16:13:38 -08:00
|
|
|
Description: Get Network.URI from the network-uri package
|
|
|
|
Default: True
|
2014-08-20 15:34:13 -07:00
|
|
|
|
2017-09-07 10:13:40 -07:00
|
|
|
custom-setup
|
|
|
|
setup-depends: base, Cabal
|
|
|
|
|
|
|
|
library
|
|
|
|
build-depends: base >= 4.7 && < 5,
|
2017-03-02 10:42:07 +01:00
|
|
|
syb >= 0.1 && < 0.8,
|
2017-07-13 23:37:21 +02:00
|
|
|
containers >= 0.4.2.1 && < 0.6,
|
2013-05-16 23:00:58 -07:00
|
|
|
unordered-containers >= 0.2 && < 0.3,
|
2012-02-04 19:38:51 -08:00
|
|
|
parsec >= 3.1 && < 3.2,
|
2016-09-01 06:32:03 -04:00
|
|
|
mtl >= 2.2 && < 2.3,
|
2018-03-15 23:48:19 -07:00
|
|
|
exceptions >= 0.8 && < 0.11,
|
2015-03-19 11:47:20 -07:00
|
|
|
filepath >= 1.1 && < 1.5,
|
2017-06-17 22:48:01 +01:00
|
|
|
process >= 1.2.3 && < 1.7,
|
2016-12-23 14:14:10 -07:00
|
|
|
directory >= 1 && < 1.4,
|
2012-12-31 14:34:02 -08:00
|
|
|
bytestring >= 0.9 && < 0.11,
|
2014-09-22 21:47:16 -05:00
|
|
|
text >= 0.11 && < 1.3,
|
2018-03-18 11:24:29 -07:00
|
|
|
time >= 1.5 && < 1.10,
|
2017-03-13 22:11:10 +01:00
|
|
|
safe >= 0.3 && < 0.4,
|
2016-02-24 20:42:28 -08:00
|
|
|
zip-archive >= 0.2.3.4 && < 0.4,
|
2016-01-01 20:23:42 -08:00
|
|
|
HTTP >= 4000.0.5 && < 4000.4,
|
2018-05-10 12:10:35 -07:00
|
|
|
texmath >= 0.10 && < 0.12,
|
2012-01-31 09:48:42 -08:00
|
|
|
xml >= 1.3.12 && < 1.4,
|
2017-08-17 12:07:07 -07:00
|
|
|
split >= 0.2 && < 0.3,
|
2014-09-22 21:47:16 -05:00
|
|
|
random >= 1 && < 1.2,
|
2018-03-16 21:20:24 -07:00
|
|
|
pandoc-types >= 1.17.4.2 && < 1.18,
|
2018-03-07 13:18:09 -08:00
|
|
|
aeson >= 0.7 && < 1.4,
|
2018-02-22 22:23:11 -08:00
|
|
|
aeson-pretty >= 0.8.5 && < 0.9,
|
2018-02-28 07:00:14 +03:00
|
|
|
tagsoup >= 0.14.6 && < 0.15,
|
2012-09-30 11:53:18 -07:00
|
|
|
base64-bytestring >= 0.1 && < 1.1,
|
2015-04-20 13:52:48 -05:00
|
|
|
zlib >= 0.5 && < 0.7,
|
2018-03-04 12:08:11 -08:00
|
|
|
skylighting >= 0.5.1 && < 0.8,
|
2016-05-22 09:21:49 -07:00
|
|
|
data-default >= 0.4 && < 0.8,
|
2018-04-11 09:45:17 -07:00
|
|
|
temporary >= 1.1 && < 1.4,
|
2018-02-01 10:08:53 -08:00
|
|
|
blaze-html >= 0.9 && < 0.10,
|
|
|
|
blaze-markup >= 0.8 && < 0.9,
|
2014-04-14 17:06:38 -07:00
|
|
|
yaml >= 0.8.8.2 && < 0.9,
|
2014-05-16 09:32:24 +03:00
|
|
|
scientific >= 0.2 && < 0.4,
|
2017-01-10 17:05:09 +01:00
|
|
|
vector >= 0.10 && < 0.13,
|
2018-02-27 19:33:55 +01:00
|
|
|
hslua >= 0.9.5 && < 0.9.6,
|
2017-11-18 22:24:06 +01:00
|
|
|
hslua-module-text >= 0.1.2 && < 0.2,
|
2017-12-02 23:24:19 -08:00
|
|
|
binary >= 0.5 && < 0.10,
|
2014-06-18 11:33:09 -07:00
|
|
|
SHA >= 1.6 && < 1.7,
|
2018-03-16 23:18:42 -07:00
|
|
|
haddock-library >= 1.1 && < 1.6,
|
2016-01-11 12:48:39 -08:00
|
|
|
deepseq >= 1.3 && < 1.5,
|
2015-02-13 23:29:12 -08:00
|
|
|
JuicyPixels >= 3.1.6.1 && < 3.3,
|
2017-10-23 11:20:31 -07:00
|
|
|
Glob >= 0.7 && < 0.10,
|
2017-08-03 10:50:05 -07:00
|
|
|
cmark-gfm >= 0.1.1 && < 0.2,
|
2017-10-20 22:42:16 -07:00
|
|
|
doctemplates >= 0.2.1 && < 0.3,
|
2017-05-07 12:49:25 +02:00
|
|
|
http-client >= 0.4.30 && < 0.6,
|
|
|
|
http-client-tls >= 0.2.4 && < 0.4,
|
2018-03-11 18:01:57 -07:00
|
|
|
http-types >= 0.8 && < 0.13,
|
2017-10-27 21:38:59 -07:00
|
|
|
case-insensitive >= 1.2 && < 1.3
|
2018-03-18 09:20:21 -07:00
|
|
|
if impl(ghc < 8.0)
|
2018-03-16 10:08:38 -07:00
|
|
|
build-depends: semigroups == 0.18.*
|
2018-03-18 09:20:21 -07:00
|
|
|
if impl(ghc < 8.4)
|
|
|
|
hs-source-dirs: prelude
|
|
|
|
other-modules: Prelude
|
|
|
|
build-depends: base-compat >= 0.9
|
2017-02-05 21:58:45 +01:00
|
|
|
if os(windows)
|
2017-09-07 10:13:40 -07:00
|
|
|
cpp-options: -D_WINDOWS
|
2017-02-05 21:58:45 +01:00
|
|
|
else
|
2017-09-07 10:13:40 -07:00
|
|
|
build-depends: unix >= 2.4 && < 2.8
|
2014-08-20 15:34:13 -07:00
|
|
|
if flag(network-uri)
|
2017-09-07 10:13:40 -07:00
|
|
|
build-depends: network-uri >= 2.6 && < 2.7, network >= 2.6
|
2014-08-20 15:34:13 -07:00
|
|
|
else
|
2017-09-07 10:13:40 -07:00
|
|
|
build-depends: network >= 2 && < 2.6
|
2012-12-29 17:44:02 -08:00
|
|
|
if flag(embed_data_files)
|
|
|
|
cpp-options: -DEMBED_DATA_FILES
|
2017-04-02 23:10:10 +02:00
|
|
|
build-depends: file-embed >= 0.0 && < 0.1
|
2013-01-23 08:33:45 -08:00
|
|
|
other-modules: Text.Pandoc.Data
|
2014-02-23 20:35:07 -08:00
|
|
|
if os(windows)
|
2017-09-07 10:13:40 -07:00
|
|
|
cpp-options: -D_WINDOWS
|
|
|
|
ghc-options: -Wall -fno-warn-unused-do-bind
|
2018-03-18 10:45:32 -07:00
|
|
|
default-language: Haskell2010
|
|
|
|
other-extensions: NoImplicitPrelude
|
2017-09-07 10:13:40 -07:00
|
|
|
hs-source-dirs: src
|
2010-07-21 11:24:50 -07:00
|
|
|
|
2017-09-07 10:13:40 -07:00
|
|
|
exposed-modules: Text.Pandoc,
|
2017-02-05 21:58:45 +01:00
|
|
|
Text.Pandoc.App,
|
2012-07-25 10:18:57 -07:00
|
|
|
Text.Pandoc.Options,
|
2017-01-14 10:29:12 +01:00
|
|
|
Text.Pandoc.Extensions,
|
2010-12-12 20:09:14 -08:00
|
|
|
Text.Pandoc.Pretty,
|
2007-11-06 00:07:17 +00:00
|
|
|
Text.Pandoc.Shared,
|
2014-07-31 12:00:21 -07:00
|
|
|
Text.Pandoc.MediaBag,
|
2015-02-18 12:55:04 +00:00
|
|
|
Text.Pandoc.Error,
|
2017-04-17 10:51:37 +02:00
|
|
|
Text.Pandoc.Readers,
|
2007-11-06 00:07:17 +00:00
|
|
|
Text.Pandoc.Readers.HTML,
|
|
|
|
Text.Pandoc.Readers.LaTeX,
|
Rewrote LaTeX reader with proper tokenization.
This rewrite is primarily motivated by the need to
get macros working properly. A side benefit is that the
reader is significantly faster (27s -> 19s in one
benchmark, and there is a lot of room for further
optimization).
We now tokenize the input text, then parse the token stream.
Macros modify the token stream, so they should now be effective
in any context, including math. Thus, we no longer need the clunky
macro processing capacities of texmath.
A custom state LaTeXState is used instead of ParserState.
This, plus the tokenization, will require some rewriting
of the exported functions rawLaTeXInline, inlineCommand,
rawLaTeXBlock.
* Added Text.Pandoc.Readers.LaTeX.Types (new exported module).
Exports Macro, Tok, TokType, Line, Column. [API change]
* Text.Pandoc.Parsing: adjusted type of `insertIncludedFile`
so it can be used with token parser.
* Removed old texmath macro stuff from Parsing.
Use Macro from Text.Pandoc.Readers.LaTeX.Types instead.
* Removed texmath macro material from Markdown reader.
* Changed types for Text.Pandoc.Readers.LaTeX's
rawLaTeXInline and rawLaTeXBlock. (Both now return a String,
and they are polymorphic in state.)
* Added orgMacros field to OrgState. [API change]
* Removed readerApplyMacros from ReaderOptions.
Now we just check the `latex_macros` reader extension.
* Allow `\newcommand\foo{blah}` without braces.
Fixes #1390.
Fixes #2118.
Fixes #3236.
Fixes #3779.
Fixes #934.
Fixes #982.
2017-07-01 19:31:43 +02:00
|
|
|
Text.Pandoc.Readers.LaTeX.Types,
|
2007-11-06 00:07:17 +00:00
|
|
|
Text.Pandoc.Readers.Markdown,
|
2015-03-16 22:20:42 -07:00
|
|
|
Text.Pandoc.Readers.CommonMark,
|
2017-10-27 01:19:28 +02:00
|
|
|
Text.Pandoc.Readers.Creole,
|
2012-09-10 10:02:12 -07:00
|
|
|
Text.Pandoc.Readers.MediaWiki,
|
2017-06-19 16:15:12 -04:00
|
|
|
Text.Pandoc.Readers.Vimwiki,
|
2007-11-06 00:07:17 +00:00
|
|
|
Text.Pandoc.Readers.RST,
|
2014-03-04 00:33:25 +01:00
|
|
|
Text.Pandoc.Readers.Org,
|
2012-04-14 16:44:21 -07:00
|
|
|
Text.Pandoc.Readers.DocBook,
|
2017-12-20 13:54:02 +13:00
|
|
|
Text.Pandoc.Readers.JATS,
|
2013-03-17 17:43:51 -07:00
|
|
|
Text.Pandoc.Readers.OPML,
|
2010-10-03 20:55:46 +02:00
|
|
|
Text.Pandoc.Readers.Textile,
|
2011-01-19 18:36:27 -08:00
|
|
|
Text.Pandoc.Readers.Native,
|
2013-03-28 14:53:10 -07:00
|
|
|
Text.Pandoc.Readers.Haddock,
|
2014-07-07 20:21:38 +02:00
|
|
|
Text.Pandoc.Readers.TWiki,
|
2017-07-21 01:09:54 -07:00
|
|
|
Text.Pandoc.Readers.TikiWiki,
|
2015-06-28 14:39:17 -07:00
|
|
|
Text.Pandoc.Readers.Txt2Tags,
|
2014-06-16 22:44:40 -07:00
|
|
|
Text.Pandoc.Readers.Docx,
|
2015-07-23 09:06:14 +02:00
|
|
|
Text.Pandoc.Readers.Odt,
|
2014-07-30 00:57:20 +01:00
|
|
|
Text.Pandoc.Readers.EPUB,
|
2017-06-19 11:46:02 +03:00
|
|
|
Text.Pandoc.Readers.Muse,
|
2018-02-25 03:34:17 +03:00
|
|
|
Text.Pandoc.Readers.Man,
|
2018-04-26 22:33:18 +03:00
|
|
|
Text.Pandoc.Readers.FB2,
|
2017-04-17 11:02:38 +02:00
|
|
|
Text.Pandoc.Writers,
|
2010-07-04 13:55:48 -07:00
|
|
|
Text.Pandoc.Writers.Native,
|
2007-11-06 00:07:17 +00:00
|
|
|
Text.Pandoc.Writers.Docbook,
|
2017-03-28 09:51:30 +02:00
|
|
|
Text.Pandoc.Writers.JATS,
|
2013-03-19 20:35:14 -07:00
|
|
|
Text.Pandoc.Writers.OPML,
|
2007-11-06 00:07:17 +00:00
|
|
|
Text.Pandoc.Writers.HTML,
|
2013-12-01 21:11:39 +01:00
|
|
|
Text.Pandoc.Writers.ICML,
|
2007-11-06 00:07:17 +00:00
|
|
|
Text.Pandoc.Writers.LaTeX,
|
|
|
|
Text.Pandoc.Writers.ConTeXt,
|
2008-03-19 18:45:51 +00:00
|
|
|
Text.Pandoc.Writers.OpenDocument,
|
2008-02-24 20:40:17 +00:00
|
|
|
Text.Pandoc.Writers.Texinfo,
|
2007-11-06 00:07:17 +00:00
|
|
|
Text.Pandoc.Writers.Man,
|
2017-03-15 21:04:14 +01:00
|
|
|
Text.Pandoc.Writers.Ms,
|
2007-11-06 00:07:17 +00:00
|
|
|
Text.Pandoc.Writers.Markdown,
|
2015-03-23 11:35:44 -07:00
|
|
|
Text.Pandoc.Writers.CommonMark,
|
2014-06-18 15:32:13 -07:00
|
|
|
Text.Pandoc.Writers.Haddock,
|
2007-11-06 00:07:17 +00:00
|
|
|
Text.Pandoc.Writers.RST,
|
2010-12-04 15:57:39 +05:30
|
|
|
Text.Pandoc.Writers.Org,
|
2011-11-18 21:09:23 -08:00
|
|
|
Text.Pandoc.Writers.AsciiDoc,
|
2013-04-02 21:08:38 -07:00
|
|
|
Text.Pandoc.Writers.Custom,
|
2010-04-10 12:38:07 -07:00
|
|
|
Text.Pandoc.Writers.Textile,
|
2008-07-27 03:25:51 +00:00
|
|
|
Text.Pandoc.Writers.MediaWiki,
|
2013-07-14 13:40:27 +01:00
|
|
|
Text.Pandoc.Writers.DokuWiki,
|
2016-06-28 23:11:42 -07:00
|
|
|
Text.Pandoc.Writers.ZimWiki,
|
2007-11-06 00:07:17 +00:00
|
|
|
Text.Pandoc.Writers.RTF,
|
2010-07-02 20:12:14 -07:00
|
|
|
Text.Pandoc.Writers.ODT,
|
2012-01-03 12:10:10 -08:00
|
|
|
Text.Pandoc.Writers.Docx,
|
2017-12-10 11:05:21 -05:00
|
|
|
Text.Pandoc.Writers.Powerpoint,
|
2010-07-02 22:07:00 -07:00
|
|
|
Text.Pandoc.Writers.EPUB,
|
2012-04-24 20:40:33 -04:00
|
|
|
Text.Pandoc.Writers.FB2,
|
2016-01-21 15:31:12 -08:00
|
|
|
Text.Pandoc.Writers.TEI,
|
2017-03-10 13:16:27 +04:00
|
|
|
Text.Pandoc.Writers.Muse,
|
2016-12-03 16:15:13 +01:00
|
|
|
Text.Pandoc.Writers.Math,
|
2017-02-25 22:07:01 +01:00
|
|
|
Text.Pandoc.Writers.Shared,
|
2017-12-11 21:37:52 -08:00
|
|
|
Text.Pandoc.Writers.OOXML,
|
2017-03-20 15:17:03 +01:00
|
|
|
Text.Pandoc.Lua,
|
2012-01-20 18:57:16 -08:00
|
|
|
Text.Pandoc.PDF,
|
2012-09-25 19:54:21 -07:00
|
|
|
Text.Pandoc.UTF8,
|
2011-11-19 00:20:00 -08:00
|
|
|
Text.Pandoc.Templates,
|
2012-12-29 16:42:17 -08:00
|
|
|
Text.Pandoc.XML,
|
2013-08-08 15:13:28 -07:00
|
|
|
Text.Pandoc.SelfContained,
|
2017-02-05 21:58:45 +01:00
|
|
|
Text.Pandoc.Highlighting,
|
2017-02-10 20:59:54 +01:00
|
|
|
Text.Pandoc.Logging,
|
2015-07-24 02:53:17 -04:00
|
|
|
Text.Pandoc.Process,
|
2016-12-12 14:49:21 +01:00
|
|
|
Text.Pandoc.MIME,
|
2017-02-25 22:07:01 +01:00
|
|
|
Text.Pandoc.Parsing,
|
|
|
|
Text.Pandoc.Asciify,
|
|
|
|
Text.Pandoc.Emoji,
|
|
|
|
Text.Pandoc.ImageSize,
|
2017-10-17 22:21:32 -07:00
|
|
|
Text.Pandoc.BCP47,
|
2016-11-21 09:30:08 -05:00
|
|
|
Text.Pandoc.Class
|
2018-01-10 22:26:12 +01:00
|
|
|
other-modules: Text.Pandoc.Filter,
|
2018-01-15 10:46:40 -08:00
|
|
|
Text.Pandoc.Filter.JSON,
|
2018-01-10 22:26:12 +01:00
|
|
|
Text.Pandoc.Filter.Lua,
|
|
|
|
Text.Pandoc.Filter.Path,
|
|
|
|
Text.Pandoc.Readers.Docx.Lists,
|
2016-02-26 08:47:26 -05:00
|
|
|
Text.Pandoc.Readers.Docx.Combine,
|
2014-06-16 22:44:40 -07:00
|
|
|
Text.Pandoc.Readers.Docx.Parse,
|
2015-03-01 22:57:35 +03:00
|
|
|
Text.Pandoc.Readers.Docx.Util,
|
2015-07-23 09:06:14 +02:00
|
|
|
Text.Pandoc.Readers.Docx.StyleMap,
|
2018-01-16 12:50:37 -05:00
|
|
|
Text.Pandoc.Readers.Docx.Fields,
|
2015-07-23 09:06:14 +02:00
|
|
|
Text.Pandoc.Readers.Odt.Base,
|
|
|
|
Text.Pandoc.Readers.Odt.Namespaces,
|
|
|
|
Text.Pandoc.Readers.Odt.StyleReader,
|
|
|
|
Text.Pandoc.Readers.Odt.ContentReader,
|
|
|
|
Text.Pandoc.Readers.Odt.Generic.Fallible,
|
|
|
|
Text.Pandoc.Readers.Odt.Generic.SetMap,
|
|
|
|
Text.Pandoc.Readers.Odt.Generic.Utils,
|
|
|
|
Text.Pandoc.Readers.Odt.Generic.Namespaces,
|
|
|
|
Text.Pandoc.Readers.Odt.Generic.XMLConverter,
|
|
|
|
Text.Pandoc.Readers.Odt.Arrows.State,
|
|
|
|
Text.Pandoc.Readers.Odt.Arrows.Utils,
|
2016-05-22 16:52:06 +02:00
|
|
|
Text.Pandoc.Readers.Org.BlockStarts,
|
2016-05-25 22:50:51 +02:00
|
|
|
Text.Pandoc.Readers.Org.Blocks,
|
2017-05-16 22:42:34 +02:00
|
|
|
Text.Pandoc.Readers.Org.DocumentTree,
|
2016-07-02 10:04:47 +02:00
|
|
|
Text.Pandoc.Readers.Org.ExportSettings,
|
2016-05-22 16:52:06 +02:00
|
|
|
Text.Pandoc.Readers.Org.Inlines,
|
2016-08-29 14:10:51 +02:00
|
|
|
Text.Pandoc.Readers.Org.Meta,
|
2016-05-11 12:26:54 +02:00
|
|
|
Text.Pandoc.Readers.Org.ParserState,
|
2016-05-22 16:33:31 +02:00
|
|
|
Text.Pandoc.Readers.Org.Parsing,
|
2016-05-30 15:07:50 +02:00
|
|
|
Text.Pandoc.Readers.Org.Shared,
|
2018-01-14 08:59:10 -05:00
|
|
|
Text.Pandoc.Writers.Powerpoint.Presentation,
|
|
|
|
Text.Pandoc.Writers.Powerpoint.Output,
|
2017-12-13 21:15:41 +01:00
|
|
|
Text.Pandoc.Lua.Filter,
|
|
|
|
Text.Pandoc.Lua.Init,
|
2017-12-21 22:17:37 +01:00
|
|
|
Text.Pandoc.Lua.Module.MediaBag,
|
2017-12-21 21:37:40 +01:00
|
|
|
Text.Pandoc.Lua.Module.Pandoc,
|
2017-12-21 22:30:59 +01:00
|
|
|
Text.Pandoc.Lua.Module.Utils,
|
2017-12-02 23:07:29 +01:00
|
|
|
Text.Pandoc.Lua.Packages,
|
2017-04-02 17:21:22 +02:00
|
|
|
Text.Pandoc.Lua.StackInstances,
|
2017-04-14 18:26:42 +02:00
|
|
|
Text.Pandoc.Lua.Util,
|
2016-12-12 14:49:21 +01:00
|
|
|
Text.Pandoc.CSS,
|
2017-08-10 11:12:41 -07:00
|
|
|
Text.Pandoc.CSV,
|
2010-07-02 22:07:00 -07:00
|
|
|
Text.Pandoc.UUID,
|
2017-08-11 11:56:54 -07:00
|
|
|
Text.Pandoc.Translations,
|
2012-01-22 19:58:45 -08:00
|
|
|
Text.Pandoc.Slides,
|
2009-04-18 16:15:56 +00:00
|
|
|
Paths_pandoc
|
2010-07-21 11:24:50 -07:00
|
|
|
|
2017-09-07 10:13:40 -07:00
|
|
|
buildable: True
|
2008-07-31 23:16:12 +00:00
|
|
|
|
2017-09-07 10:13:40 -07:00
|
|
|
executable pandoc
|
|
|
|
build-depends: pandoc, base >= 4.7 && < 5
|
2018-03-18 09:20:21 -07:00
|
|
|
if impl(ghc < 8.0)
|
2018-03-17 17:10:02 -07:00
|
|
|
build-depends: semigroups == 0.18.*
|
2018-03-18 09:20:21 -07:00
|
|
|
if impl(ghc < 8.4)
|
|
|
|
hs-source-dirs: prelude
|
|
|
|
other-modules: Prelude
|
|
|
|
build-depends: base-compat >= 0.9
|
2017-12-07 15:25:37 -08:00
|
|
|
ghc-options: -rtsopts -with-rtsopts=-K16m -Wall -fno-warn-unused-do-bind -threaded
|
2017-09-04 17:07:20 -07:00
|
|
|
if flag(static)
|
2017-09-07 10:13:40 -07:00
|
|
|
ld-options: -static
|
2018-03-18 10:45:32 -07:00
|
|
|
default-language: Haskell2010
|
|
|
|
other-extensions: NoImplicitPrelude
|
2017-09-07 10:13:40 -07:00
|
|
|
hs-source-dirs: .
|
|
|
|
main-is: pandoc.hs
|
|
|
|
buildable: True
|
|
|
|
other-modules: Paths_pandoc
|
2010-12-15 17:52:35 -08:00
|
|
|
|
2017-09-07 10:13:40 -07:00
|
|
|
executable trypandoc
|
|
|
|
main-is: trypandoc.hs
|
|
|
|
hs-source-dirs: trypandoc
|
2014-08-17 16:11:09 -07:00
|
|
|
default-language: Haskell2010
|
2018-03-18 10:45:32 -07:00
|
|
|
other-extensions: NoImplicitPrelude
|
2014-08-17 16:11:09 -07:00
|
|
|
if flag(trypandoc)
|
2017-09-07 10:13:40 -07:00
|
|
|
build-depends: base, aeson, pandoc,
|
2014-08-24 16:49:26 +02:00
|
|
|
text, wai-extra, wai >= 0.3, http-types
|
2017-09-07 10:13:40 -07:00
|
|
|
buildable: True
|
2014-08-17 16:11:09 -07:00
|
|
|
else
|
2017-09-07 10:13:40 -07:00
|
|
|
buildable: False
|
2018-03-18 09:20:21 -07:00
|
|
|
if impl(ghc < 8.0)
|
2018-03-17 17:10:02 -07:00
|
|
|
build-depends: semigroups == 0.18.*
|
2018-03-18 09:20:21 -07:00
|
|
|
if impl(ghc < 8.4)
|
|
|
|
hs-source-dirs: prelude
|
|
|
|
other-modules: Prelude
|
|
|
|
build-depends: base-compat >= 0.9
|
2014-08-17 16:11:09 -07:00
|
|
|
|
2018-03-18 11:51:57 -07:00
|
|
|
benchmark weigh-pandoc
|
|
|
|
type: exitcode-stdio-1.0
|
2017-09-07 10:13:40 -07:00
|
|
|
main-is: weigh-pandoc.hs
|
|
|
|
hs-source-dirs: benchmark
|
2018-03-18 11:51:57 -07:00
|
|
|
build-depends: pandoc,
|
|
|
|
base >= 4.2 && < 5,
|
|
|
|
text,
|
|
|
|
weigh >= 0.0 && < 0.1,
|
|
|
|
mtl >= 2.2 && < 2.3
|
2018-03-18 09:20:21 -07:00
|
|
|
if impl(ghc < 8.0)
|
2018-03-17 17:10:02 -07:00
|
|
|
build-depends: semigroups == 0.18.*
|
2018-03-18 09:20:21 -07:00
|
|
|
if impl(ghc < 8.4)
|
|
|
|
hs-source-dirs: prelude
|
|
|
|
other-modules: Prelude
|
|
|
|
build-depends: base-compat >= 0.9
|
2018-04-24 21:31:03 +02:00
|
|
|
ghc-options: -rtsopts -Wall -fno-warn-unused-do-bind -threaded
|
2018-03-18 10:45:32 -07:00
|
|
|
default-language: Haskell2010
|
|
|
|
other-extensions: NoImplicitPrelude
|
2016-11-18 14:03:08 +01:00
|
|
|
|
2017-09-07 10:13:40 -07:00
|
|
|
test-suite test-pandoc
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: test-pandoc.hs
|
|
|
|
hs-source-dirs: test
|
|
|
|
build-depends: base >= 4.2 && < 5,
|
2012-12-29 16:42:17 -08:00
|
|
|
pandoc,
|
2018-03-16 21:20:24 -07:00
|
|
|
pandoc-types >= 1.17.4.2 && < 1.18,
|
2012-12-31 14:34:02 -08:00
|
|
|
bytestring >= 0.9 && < 0.11,
|
2017-12-28 10:39:47 -05:00
|
|
|
base64-bytestring >= 0.1 && < 1.1,
|
2014-09-22 21:47:16 -05:00
|
|
|
text >= 0.11 && < 1.3,
|
2018-03-15 23:48:19 -07:00
|
|
|
time >= 1.5 && < 1.10,
|
2016-12-23 14:14:10 -07:00
|
|
|
directory >= 1 && < 1.4,
|
2015-03-19 11:47:20 -07:00
|
|
|
filepath >= 1.1 && < 1.5,
|
2018-02-27 19:33:55 +01:00
|
|
|
hslua >= 0.9.5 && < 0.9.6,
|
2017-06-17 22:48:01 +01:00
|
|
|
process >= 1.2.3 && < 1.7,
|
2018-04-11 09:45:17 -07:00
|
|
|
temporary >= 1.1 && < 1.4,
|
2013-02-13 08:20:02 -08:00
|
|
|
Diff >= 0.2 && < 0.4,
|
2018-01-08 17:08:46 -08:00
|
|
|
tasty >= 0.11 && < 1.1,
|
2017-12-02 23:24:19 -08:00
|
|
|
tasty-hunit >= 0.9 && < 0.11,
|
2018-03-06 01:35:16 +08:00
|
|
|
tasty-quickcheck >= 0.8 && < 0.11,
|
2017-03-15 00:27:39 +01:00
|
|
|
tasty-golden >= 2.3 && < 2.4,
|
2018-01-14 10:45:13 -08:00
|
|
|
QuickCheck >= 2.4 && < 2.12,
|
2017-07-13 23:37:21 +02:00
|
|
|
containers >= 0.4.2.1 && < 0.6,
|
2014-08-13 08:12:07 -07:00
|
|
|
executable-path >= 0.0 && < 0.1,
|
2017-12-29 09:18:54 -05:00
|
|
|
zip-archive >= 0.2.3.4 && < 0.4,
|
2018-01-25 15:27:54 -05:00
|
|
|
xml >= 1.3.12 && < 1.4,
|
|
|
|
Glob >= 0.7 && < 0.10
|
2018-03-18 09:20:21 -07:00
|
|
|
if impl(ghc < 8.0)
|
2018-03-17 17:10:02 -07:00
|
|
|
build-depends: semigroups == 0.18.*
|
2018-03-18 09:20:21 -07:00
|
|
|
if impl(ghc < 8.4)
|
|
|
|
hs-source-dirs: prelude
|
|
|
|
other-modules: Prelude
|
|
|
|
build-depends: base-compat >= 0.9
|
2017-09-07 10:13:40 -07:00
|
|
|
other-modules: Tests.Old
|
2017-02-04 17:38:03 +01:00
|
|
|
Tests.Command
|
2012-12-29 16:42:17 -08:00
|
|
|
Tests.Helpers
|
2017-03-20 15:17:03 +01:00
|
|
|
Tests.Lua
|
2012-12-29 16:42:17 -08:00
|
|
|
Tests.Shared
|
|
|
|
Tests.Readers.LaTeX
|
2015-05-13 20:39:01 -07:00
|
|
|
Tests.Readers.HTML
|
2017-12-20 13:54:02 +13:00
|
|
|
Tests.Readers.JATS
|
2012-12-29 16:42:17 -08:00
|
|
|
Tests.Readers.Markdown
|
2014-03-04 00:33:25 +01:00
|
|
|
Tests.Readers.Org
|
2017-12-24 22:48:18 +01:00
|
|
|
Tests.Readers.Org.Block
|
|
|
|
Tests.Readers.Org.Block.CodeBlock
|
|
|
|
Tests.Readers.Org.Block.Figure
|
|
|
|
Tests.Readers.Org.Block.Header
|
|
|
|
Tests.Readers.Org.Block.List
|
|
|
|
Tests.Readers.Org.Block.Table
|
|
|
|
Tests.Readers.Org.Directive
|
|
|
|
Tests.Readers.Org.Inline
|
2018-02-26 21:09:51 +01:00
|
|
|
Tests.Readers.Org.Inline.Citation
|
2017-12-24 22:48:18 +01:00
|
|
|
Tests.Readers.Org.Inline.Note
|
|
|
|
Tests.Readers.Org.Inline.Smart
|
|
|
|
Tests.Readers.Org.Meta
|
|
|
|
Tests.Readers.Org.Shared
|
2012-12-29 16:42:17 -08:00
|
|
|
Tests.Readers.RST
|
2014-06-16 22:44:40 -07:00
|
|
|
Tests.Readers.Docx
|
2015-07-23 09:06:14 +02:00
|
|
|
Tests.Readers.Odt
|
2014-07-25 20:39:13 +01:00
|
|
|
Tests.Readers.Txt2Tags
|
2014-08-10 14:33:18 +01:00
|
|
|
Tests.Readers.EPUB
|
2017-06-19 11:46:02 +03:00
|
|
|
Tests.Readers.Muse
|
2017-10-27 01:19:28 +02:00
|
|
|
Tests.Readers.Creole
|
2018-02-25 03:34:17 +03:00
|
|
|
Tests.Readers.Man
|
2018-04-26 22:33:18 +03:00
|
|
|
Tests.Readers.FB2
|
2012-12-29 16:42:17 -08:00
|
|
|
Tests.Writers.Native
|
|
|
|
Tests.Writers.ConTeXt
|
2014-08-13 16:46:00 -07:00
|
|
|
Tests.Writers.Docbook
|
2012-12-29 16:42:17 -08:00
|
|
|
Tests.Writers.HTML
|
2017-12-13 12:06:22 +13:00
|
|
|
Tests.Writers.JATS
|
2012-12-29 16:42:17 -08:00
|
|
|
Tests.Writers.Markdown
|
2017-02-12 17:09:07 +03:00
|
|
|
Tests.Writers.Org
|
2014-08-03 18:32:31 +04:00
|
|
|
Tests.Writers.Plain
|
2014-05-03 21:24:20 -07:00
|
|
|
Tests.Writers.AsciiDoc
|
2012-12-29 16:42:17 -08:00
|
|
|
Tests.Writers.LaTeX
|
2015-03-28 14:12:18 -07:00
|
|
|
Tests.Writers.Docx
|
2015-04-16 19:27:33 +03:00
|
|
|
Tests.Writers.RST
|
2015-12-24 11:36:58 -05:00
|
|
|
Tests.Writers.TEI
|
2017-03-10 13:16:27 +04:00
|
|
|
Tests.Writers.Muse
|
2017-10-28 18:13:51 +03:00
|
|
|
Tests.Writers.FB2
|
2017-12-28 10:39:47 -05:00
|
|
|
Tests.Writers.Powerpoint
|
2018-01-25 15:27:54 -05:00
|
|
|
Tests.Writers.OOXML
|
2017-09-07 10:13:40 -07:00
|
|
|
ghc-options: -rtsopts -Wall -fno-warn-unused-do-bind -threaded
|
2018-03-18 10:45:32 -07:00
|
|
|
default-language: Haskell2010
|
|
|
|
other-extensions: NoImplicitPrelude
|
2012-07-26 08:37:36 -07:00
|
|
|
|
2012-07-26 09:18:17 -07:00
|
|
|
benchmark benchmark-pandoc
|
2017-09-07 10:13:40 -07:00
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: benchmark-pandoc.hs
|
|
|
|
hs-source-dirs: benchmark
|
|
|
|
build-depends: pandoc,
|
2017-01-27 11:15:45 +01:00
|
|
|
time, bytestring, containers,
|
2012-12-29 16:42:17 -08:00
|
|
|
base >= 4.2 && < 5,
|
2017-06-10 20:57:38 +02:00
|
|
|
text >= 0.11 && < 1.3,
|
2018-03-15 23:48:19 -07:00
|
|
|
criterion >= 1.0 && < 1.5
|
2018-03-18 09:20:21 -07:00
|
|
|
if impl(ghc < 8.0)
|
2018-03-17 17:10:02 -07:00
|
|
|
build-depends: semigroups == 0.18.*
|
2018-03-18 09:20:21 -07:00
|
|
|
if impl(ghc < 8.4)
|
|
|
|
hs-source-dirs: prelude
|
|
|
|
other-modules: Prelude
|
|
|
|
build-depends: base-compat >= 0.9
|
2018-04-24 21:31:03 +02:00
|
|
|
ghc-options: -rtsopts -Wall -fno-warn-unused-do-bind -threaded
|
2018-03-18 10:45:32 -07:00
|
|
|
default-language: Haskell2010
|
|
|
|
other-extensions: NoImplicitPrelude
|