git.iko.soy/typeable/pandoc
on 1.17.1 help sign in
typeable/pandoc/pandoc.cabal
536 lines 22 kB history raw
1Name: pandoc
2Version: 1.17.1
3Cabal-Version: >= 1.10
4Build-Type: Custom
5License: GPL
6License-File: COPYING
7Copyright: (c) 2006-2016 John MacFarlane
8Author: John MacFarlane <jgm@berkeley.edu>
9Maintainer: John MacFarlane <jgm@berkeley.edu>
10Bug-Reports: https://github.com/jgm/pandoc/issues
11Stability: alpha
12Homepage: http://pandoc.org
13Category: Text
14Tested-With: GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.2, GHC == 8.0.1
15Synopsis: Conversion between markup formats
16Description: Pandoc is a Haskell library for converting from one markup
17 format to another, and a command-line tool that uses
18 this library. It can read several dialects of Markdown and
19 (subsets of) HTML, reStructuredText, LaTeX, DocBook,
20 MediaWiki markup, TWiki markup, Haddock markup, OPML,
21 Emacs Org-Mode, txt2tags, Word Docx, ODT, and Textile, and
22 it can write Markdown, reStructuredText, XHTML, HTML 5,
23 LaTeX, ConTeXt, DocBook, OPML, TEI, OpenDocument, ODT,
24 Word docx, RTF, MediaWiki, DokuWiki, Textile, groff man
25 pages, plain text, Emacs Org-Mode, AsciiDoc, Haddock markup,
26 EPUB (v2 and v3), FictionBook2, InDesign ICML, and several
27 kinds of HTML/javascript slide shows (S5, Slidy, Slideous,
28 DZSlides, reveal.js).
29 .
30 In contrast to most existing tools for converting Markdown
31 to HTML, pandoc has a modular design: it consists of a set of
32 readers, which parse text in a given format and produce a
33 native representation of the document, and a set of writers,
34 which convert this native representation into a target
35 format. Thus, adding an input or output format requires
36 only adding a reader or writer.
37Data-Files:
38 -- templates
39 data/templates/default.html
40 data/templates/default.html5
41 data/templates/default.docbook
42 data/templates/default.docbook5
43 data/templates/default.tei
44 data/templates/default.beamer
45 data/templates/default.opendocument
46 data/templates/default.icml
47 data/templates/default.opml
48 data/templates/default.latex
49 data/templates/default.context
50 data/templates/default.texinfo
51 data/templates/default.man
52 data/templates/default.markdown
53 data/templates/default.commonmark
54 data/templates/default.rst
55 data/templates/default.plain
56 data/templates/default.mediawiki
57 data/templates/default.dokuwiki
58 data/templates/default.rtf
59 data/templates/default.s5
60 data/templates/default.slidy
61 data/templates/default.slideous
62 data/templates/default.revealjs
63 data/templates/default.dzslides
64 data/templates/default.asciidoc
65 data/templates/default.haddock
66 data/templates/default.textile
67 data/templates/default.org
68 data/templates/default.epub
69 data/templates/default.epub3
70 -- source files for reference.docx
71 data/docx/[Content_Types].xml
72 data/docx/_rels/.rels
73 data/docx/docProps/app.xml
74 data/docx/docProps/core.xml
75 data/docx/word/document.xml
76 data/docx/word/fontTable.xml
77 data/docx/word/footnotes.xml
78 data/docx/word/numbering.xml
79 data/docx/word/settings.xml
80 data/docx/word/webSettings.xml
81 data/docx/word/styles.xml
82 data/docx/word/_rels/document.xml.rels
83 data/docx/word/_rels/footnotes.xml.rels
84 data/docx/word/theme/theme1.xml
85 -- source files for reference.odt
86 data/odt/mimetype
87 data/odt/manifest.rdf
88 data/odt/styles.xml
89 data/odt/content.xml
90 data/odt/meta.xml
91 data/odt/settings.xml
92 data/odt/Configurations2/accelerator/current.xml
93 data/odt/Thumbnails/thumbnail.png
94 data/odt/META-INF/manifest.xml
95 -- stylesheet for EPUB writer
96 data/epub.css
97 -- data for LaTeXMathML writer
98 data/LaTeXMathML.js
99 data/MathMLinHTML.js
100 -- data for dzslides writer
101 data/dzslides/template.html
102 -- sample lua custom writer
103 data/sample.lua
104 -- bash completion template
105 data/bash_completion.tpl
106 -- documentation
107 README, COPYRIGHT
108Extra-Source-Files:
109 -- documentation
110 INSTALL, BUGS, CONTRIBUTING.md, changelog
111 man/pandoc.1
112 -- stack build plan
113 stack.yaml
114 -- files needed to build man page
115 man/capitalizeHeaders.hs
116 man/removeNotes.hs
117 man/removeLinks.hs
118 man/pandoc.1.template
119 -- trypandoc
120 trypandoc/Makefile
121 trypandoc/index.html
122 -- tests
123 tests/bodybg.gif
124 tests/*.native
125 tests/docbook-reader.docbook
126 tests/docbook-xref.docbook
127 tests/html-reader.html
128 tests/opml-reader.opml
129 tests/haddock-reader.haddock
130 tests/insert
131 tests/lalune.jpg
132 tests/movie.jpg
133 tests/media/rId25.jpg
134 tests/media/rId26.jpg
135 tests/media/rId27.jpg
136 tests/latex-reader.latex
137 tests/textile-reader.textile
138 tests/markdown-reader-more.txt
139 tests/markdown-citations.txt
140 tests/textile-reader.textile
141 tests/mediawiki-reader.wiki
142 tests/rst-reader.rst
143 tests/s5-basic.html
144 tests/s5-fancy.html
145 tests/s5-fragment.html
146 tests/s5-inserts.html
147 tests/tables.context
148 tests/tables.docbook
149 tests/tables.docbook5
150 tests/tables.dokuwiki
151 tests/tables.icml
152 tests/tables.html
153 tests/tables.latex
154 tests/tables.man
155 tests/tables.plain
156 tests/tables.markdown
157 tests/tables.mediawiki
158 tests/tables.tei
159 tests/tables.textile
160 tests/tables.opendocument
161 tests/tables.org
162 tests/tables.asciidoc
163 tests/tables.haddock
164 tests/tables.texinfo
165 tests/tables.rst
166 tests/tables.rtf
167 tests/tables.txt
168 tests/tables.fb2
169 tests/testsuite.txt
170 tests/writer.latex
171 tests/writer.context
172 tests/writer.docbook
173 tests/writer.docbook5
174 tests/writer.html
175 tests/writer.man
176 tests/writer.markdown
177 tests/writer.plain
178 tests/writer.mediawiki
179 tests/writer.textile
180 tests/writer.opendocument
181 tests/writer.org
182 tests/writer.asciidoc
183 tests/writer.haddock
184 tests/writer.rst
185 tests/writer.icml
186 tests/writer.rtf
187 tests/writer.tei
188 tests/writer.texinfo
189 tests/writer.fb2
190 tests/writer.opml
191 tests/writer.dokuwiki
192 tests/writers-lang-and-dir.latex
193 tests/writers-lang-and-dir.context
194 tests/dokuwiki_inline_formatting.dokuwiki
195 tests/lhs-test.markdown
196 tests/lhs-test.markdown+lhs
197 tests/lhs-test.rst
198 tests/lhs-test.rst+lhs
199 tests/lhs-test.latex
200 tests/lhs-test.latex+lhs
201 tests/lhs-test.html
202 tests/lhs-test.html+lhs
203 tests/lhs-test.fragment.html+lhs
204 tests/pipe-tables.txt
205 tests/dokuwiki_external_images.dokuwiki
206 tests/dokuwiki_external_images.native
207 tests/dokuwiki_multiblock_table.dokuwiki
208 tests/dokuwiki_multiblock_table.native
209 tests/fb2/*.markdown
210 tests/fb2/*.fb2
211 tests/fb2/images-embedded.html
212 tests/fb2/images-embedded.fb2
213 tests/fb2/test-small.png
214 tests/fb2/test.jpg
215 tests/docx/*.docx
216 tests/docx/*.native
217 tests/epub/*.epub
218 tests/epub/*.native
219 tests/txt2tags.t2t
220 tests/twiki-reader.twiki
221 tests/odt/odt/*.odt
222 tests/odt/markdown/*.md
223 tests/odt/native/*.native
224Source-repository head
225 type: git
226 location: git://github.com/jgm/pandoc.git
228Flag embed_data_files
229 Description: Embed data files in binary for relocatable executable.
230 Default: False
232Flag trypandoc
233 Description: Build trypandoc cgi executable.
234 Default: False
236Flag https
237 Description: Enable support for downloading of resources over https.
238 Default: True
240Flag network-uri
241 Description: Get Network.URI from the network-uri package
242 Default: True
244Flag old-locale
245 Description: Use old-locale and time < 1.5
246 Default: False
248Library
249 Build-Depends: base >= 4.2 && <5,
250 syb >= 0.1 && < 0.7,
251 containers >= 0.1 && < 0.6,
252 unordered-containers >= 0.2 && < 0.3,
253 array >= 0.3 && < 0.6,
254 parsec >= 3.1 && < 3.2,
255 mtl >= 1.1 && < 2.3,
256 filepath >= 1.1 && < 1.5,
257 process >= 1 && < 1.5,
258 directory >= 1 && < 1.3,
259 bytestring >= 0.9 && < 0.11,
260 text >= 0.11 && < 1.3,
261 zip-archive >= 0.2.3.4 && < 0.4,
262 HTTP >= 4000.0.5 && < 4000.4,
263 texmath >= 0.8.6.2 && < 0.9,
264 xml >= 1.3.12 && < 1.4,
265 random >= 1 && < 1.2,
266 extensible-exceptions >= 0.1 && < 0.2,
267 pandoc-types >= 1.16 && < 1.17,
268 aeson >= 0.7 && < 0.12,
269 tagsoup >= 0.13.7 && < 0.14,
270 base64-bytestring >= 0.1 && < 1.1,
271 zlib >= 0.5 && < 0.7,
272 highlighting-kate >= 0.6.2 && < 0.7,
273 data-default >= 0.4 && < 0.8,
274 temporary >= 1.1 && < 1.3,
275 blaze-html >= 0.5 && < 0.9,
276 blaze-markup >= 0.5.1 && < 0.8,
277 yaml >= 0.8.8.2 && < 0.9,
278 scientific >= 0.2 && < 0.4,
279 vector >= 0.10 && < 0.12,
280 hslua >= 0.3 && < 0.5,
281 binary >= 0.5 && < 0.9,
282 SHA >= 1.6 && < 1.7,
283 haddock-library >= 1.1 && < 1.5,
284 old-time,
285 deepseq >= 1.3 && < 1.5,
286 JuicyPixels >= 3.1.6.1 && < 3.3,
287 filemanip >= 0.3 && < 0.4,
288 cmark >= 0.5 && < 0.6,
289 ghc-prim >= 0.2
290 if flag(old-locale)
291 Build-Depends: old-locale >= 1 && < 1.1,
292 time >= 1.2 && < 1.5
293 else
294 Build-Depends: time >= 1.5 && < 1.7
295 if flag(network-uri)
296 Build-Depends: network-uri >= 2.6 && < 2.7, network >= 2.6
297 else
298 Build-Depends: network >= 2 && < 2.6
299 if flag(https)
300 Build-Depends: http-client >= 0.3.2 && < 0.5,
301 http-client-tls >= 0.2 && < 0.3,
302 http-types >= 0.8 && < 0.10
303 cpp-options: -DHTTP_CLIENT
304 if flag(embed_data_files)
305 cpp-options: -DEMBED_DATA_FILES
306 Build-Tools: hsb2hs >= 0.3.1
307 other-modules: Text.Pandoc.Data
308 if os(windows)
309 Cpp-options: -D_WINDOWS
310 Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind
311 Ghc-Prof-Options: -fprof-auto-exported -rtsopts
312 Default-Language: Haskell98
313 Other-Extensions: PatternGuards, OverloadedStrings,
314 ScopedTypeVariables, GeneralizedNewtypeDeriving,
315 RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
316 FlexibleInstances
317 Hs-Source-Dirs: src
318 if impl(ghc < 7.10)
319 Hs-Source-Dirs: prelude
320 Other-Modules: Prelude
322 Exposed-Modules: Text.Pandoc,
323 Text.Pandoc.Options,
324 Text.Pandoc.Pretty,
325 Text.Pandoc.Shared,
326 Text.Pandoc.MediaBag,
327 Text.Pandoc.Error,
328 Text.Pandoc.Readers.HTML,
329 Text.Pandoc.Readers.LaTeX,
330 Text.Pandoc.Readers.Markdown,
331 Text.Pandoc.Readers.CommonMark,
332 Text.Pandoc.Readers.MediaWiki,
333 Text.Pandoc.Readers.RST,
334 Text.Pandoc.Readers.Org,
335 Text.Pandoc.Readers.DocBook,
336 Text.Pandoc.Readers.OPML,
337 Text.Pandoc.Readers.TeXMath,
338 Text.Pandoc.Readers.Textile,
339 Text.Pandoc.Readers.Native,
340 Text.Pandoc.Readers.Haddock,
341 Text.Pandoc.Readers.TWiki,
342 Text.Pandoc.Readers.Txt2Tags,
343 Text.Pandoc.Readers.Docx,
344 Text.Pandoc.Readers.Odt,
345 Text.Pandoc.Readers.EPUB,
346 Text.Pandoc.Writers.Native,
347 Text.Pandoc.Writers.Docbook,
348 Text.Pandoc.Writers.OPML,
349 Text.Pandoc.Writers.HTML,
350 Text.Pandoc.Writers.ICML,
351 Text.Pandoc.Writers.LaTeX,
352 Text.Pandoc.Writers.ConTeXt,
353 Text.Pandoc.Writers.OpenDocument,
354 Text.Pandoc.Writers.Texinfo,
355 Text.Pandoc.Writers.Man,
356 Text.Pandoc.Writers.Markdown,
357 Text.Pandoc.Writers.CommonMark,
358 Text.Pandoc.Writers.Haddock,
359 Text.Pandoc.Writers.RST,
360 Text.Pandoc.Writers.Org,
361 Text.Pandoc.Writers.AsciiDoc,
362 Text.Pandoc.Writers.Custom,
363 Text.Pandoc.Writers.Textile,
364 Text.Pandoc.Writers.MediaWiki,
365 Text.Pandoc.Writers.DokuWiki,
366 Text.Pandoc.Writers.RTF,
367 Text.Pandoc.Writers.ODT,
368 Text.Pandoc.Writers.Docx,
369 Text.Pandoc.Writers.EPUB,
370 Text.Pandoc.Writers.FB2,
371 Text.Pandoc.Writers.TEI,
372 Text.Pandoc.PDF,
373 Text.Pandoc.UTF8,
374 Text.Pandoc.Templates,
375 Text.Pandoc.XML,
376 Text.Pandoc.SelfContained,
377 Text.Pandoc.Process,
378 Text.Pandoc.CSS
379 Other-Modules: Text.Pandoc.Readers.Docx.Lists,
380 Text.Pandoc.Readers.Docx.Combine,
381 Text.Pandoc.Readers.Docx.Parse,
382 Text.Pandoc.Readers.Docx.Fonts,
383 Text.Pandoc.Readers.Docx.Util,
384 Text.Pandoc.Readers.Docx.StyleMap,
385 Text.Pandoc.Readers.Odt.Base,
386 Text.Pandoc.Readers.Odt.Namespaces,
387 Text.Pandoc.Readers.Odt.StyleReader,
388 Text.Pandoc.Readers.Odt.ContentReader,
389 Text.Pandoc.Readers.Odt.Generic.Fallible,
390 Text.Pandoc.Readers.Odt.Generic.SetMap,
391 Text.Pandoc.Readers.Odt.Generic.Utils,
392 Text.Pandoc.Readers.Odt.Generic.Namespaces,
393 Text.Pandoc.Readers.Odt.Generic.XMLConverter,
394 Text.Pandoc.Readers.Odt.Arrows.State,
395 Text.Pandoc.Readers.Odt.Arrows.Utils,
396 Text.Pandoc.Readers.Org.BlockStarts,
397 Text.Pandoc.Readers.Org.Blocks,
398 Text.Pandoc.Readers.Org.Inlines,
399 Text.Pandoc.Readers.Org.ParserState,
400 Text.Pandoc.Readers.Org.Parsing,
401 Text.Pandoc.Readers.Org.Shared,
402 Text.Pandoc.Writers.Shared,
403 Text.Pandoc.Asciify,
404 Text.Pandoc.MIME,
405 Text.Pandoc.Emoji,
406 Text.Pandoc.Parsing,
407 Text.Pandoc.UUID,
408 Text.Pandoc.ImageSize,
409 Text.Pandoc.Slides,
410 Text.Pandoc.Highlighting,
411 Text.Pandoc.Compat.Time,
412 Text.Pandoc.Compat.Except,
413 Text.Pandoc.Compat.TagSoupEntity,
414 Text.Pandoc.Compat.Directory,
415 Text.Pandoc.Compat.Monoid,
416 Paths_pandoc
418 Buildable: True
420Executable pandoc
421 Build-Depends: pandoc,
422 pandoc-types >= 1.16 && < 1.17,
423 base >= 4.2 && <5,
424 directory >= 1 && < 1.3,
425 filepath >= 1.1 && < 1.5,
426 text >= 0.11 && < 1.3,
427 bytestring >= 0.9 && < 0.11,
428 extensible-exceptions >= 0.1 && < 0.2,
429 highlighting-kate >= 0.6.2 && < 0.7,
430 aeson >= 0.7.0.5 && < 0.12,
431 yaml >= 0.8.8.2 && < 0.9,
432 containers >= 0.1 && < 0.6,
433 HTTP >= 4000.0.5 && < 4000.4
434 if flag(network-uri)
435 Build-Depends: network-uri >= 2.6 && < 2.7, network >= 2.6
436 else
437 Build-Depends: network >= 2 && < 2.6
438 Ghc-Options: -rtsopts -with-rtsopts=-K16m -Wall -fno-warn-unused-do-bind
439 Ghc-Prof-Options: -fprof-auto-exported -rtsopts -with-rtsopts=-K16m
440 if os(windows)
441 Cpp-options: -D_WINDOWS
442 Default-Language: Haskell98
443 Other-Extensions: PatternGuards, OverloadedStrings,
444 ScopedTypeVariables, GeneralizedNewtypeDeriving,
445 RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
446 FlexibleInstances
447 Hs-Source-Dirs: .
448 if impl(ghc < 7.10)
449 Hs-Source-Dirs: prelude
450 Other-Modules: Prelude
451 Main-Is: pandoc.hs
452 Buildable: True
453 Other-Modules: Paths_pandoc
455Executable trypandoc
456 Main-Is: trypandoc.hs
457 Hs-Source-Dirs: trypandoc
458 if impl(ghc < 7.10)
459 Hs-Source-Dirs: prelude
460 Other-Modules: Prelude
461 default-language: Haskell2010
462 if flag(trypandoc)
463 Build-Depends: base, aeson, pandoc, highlighting-kate,
464 text, wai-extra, wai >= 0.3, http-types
465 Buildable: True
466 else
467 Buildable: False
469Test-Suite test-pandoc
470 Type: exitcode-stdio-1.0
471 Main-Is: test-pandoc.hs
472 Hs-Source-Dirs: tests
473 if impl(ghc < 7.10)
474 Hs-Source-Dirs: prelude
475 Other-Modules: Prelude
476 Build-Depends: base >= 4.2 && < 5,
477 syb >= 0.1 && < 0.7,
478 pandoc,
479 pandoc-types >= 1.16 && < 1.17,
480 bytestring >= 0.9 && < 0.11,
481 text >= 0.11 && < 1.3,
482 directory >= 1 && < 1.3,
483 filepath >= 1.1 && < 1.5,
484 process >= 1 && < 1.5,
485 highlighting-kate >= 0.6.2 && < 0.7,
486 Diff >= 0.2 && < 0.4,
487 test-framework >= 0.3 && < 0.9,
488 test-framework-hunit >= 0.2 && < 0.4,
489 test-framework-quickcheck2 >= 0.2.9 && < 0.4,
490 QuickCheck >= 2.4 && < 2.9,
491 HUnit >= 1.2 && < 1.4,
492 containers >= 0.1 && < 0.6,
493 ansi-terminal >= 0.5 && < 0.7,
494 executable-path >= 0.0 && < 0.1,
495 zip-archive >= 0.2.3.4 && < 0.4
496 Other-Modules: Tests.Old
497 Tests.Helpers
498 Tests.Arbitrary
499 Tests.Shared
500 Tests.Walk
501 Tests.Readers.LaTeX
502 Tests.Readers.HTML
503 Tests.Readers.Markdown
504 Tests.Readers.Org
505 Tests.Readers.RST
506 Tests.Readers.Docx
507 Tests.Readers.Odt
508 Tests.Readers.Txt2Tags
509 Tests.Readers.EPUB
510 Tests.Writers.Native
511 Tests.Writers.ConTeXt
512 Tests.Writers.Docbook
513 Tests.Writers.HTML
514 Tests.Writers.Markdown
515 Tests.Writers.Plain
516 Tests.Writers.AsciiDoc
517 Tests.Writers.LaTeX
518 Tests.Writers.Docx
519 Tests.Writers.RST
520 Tests.Writers.TEI
521 Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind -threaded
522 Default-Language: Haskell98
524benchmark benchmark-pandoc
525 Type: exitcode-stdio-1.0
526 Main-Is: benchmark-pandoc.hs
527 Hs-Source-Dirs: benchmark
528 if impl(ghc < 7.10)
529 Hs-Source-Dirs: prelude
530 Other-Modules: Prelude
531 Build-Depends: pandoc,
532 base >= 4.2 && < 5,
533 syb >= 0.1 && < 0.7,
534 criterion >= 1.0 && < 1.2
535 Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind
536 Default-Language: Haskell98