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