git.iko.soy/typeable/pandoc
on 1.19.2.2 help sign in
typeable/pandoc/pandoc.cabal
563 lines 23 kB history raw
1Name: pandoc
2Version: 1.19.2.2
3Cabal-Version: >= 1.10
4Build-Type: Custom
5License: GPL
6License-File: COPYING.md
7Copyright: (c) 2006-2017 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 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 MANUAL.txt, COPYRIGHT
108Extra-Source-Files:
109 -- documentation
110 INSTALL.md, BUGS, README.md, 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.zimwiki
152 tests/tables.icml
153 tests/tables.html
154 tests/tables.latex
155 tests/tables.man
156 tests/tables.plain
157 tests/tables.markdown
158 tests/tables.mediawiki
159 tests/tables.tei
160 tests/tables.textile
161 tests/tables.opendocument
162 tests/tables.org
163 tests/tables.asciidoc
164 tests/tables.haddock
165 tests/tables.texinfo
166 tests/tables.rst
167 tests/tables.rtf
168 tests/tables.txt
169 tests/tables.fb2
170 tests/testsuite.txt
171 tests/writer.latex
172 tests/writer.context
173 tests/writer.docbook
174 tests/writer.docbook5
175 tests/writer.html
176 tests/writer.man
177 tests/writer.markdown
178 tests/writer.plain
179 tests/writer.mediawiki
180 tests/writer.textile
181 tests/writer.opendocument
182 tests/writer.org
183 tests/writer.asciidoc
184 tests/writer.haddock
185 tests/writer.rst
186 tests/writer.icml
187 tests/writer.rtf
188 tests/writer.tei
189 tests/writer.texinfo
190 tests/writer.fb2
191 tests/writer.opml
192 tests/writer.dokuwiki
193 tests/writer.zimwiki
194 tests/writers-lang-and-dir.latex
195 tests/writers-lang-and-dir.context
196 tests/dokuwiki_inline_formatting.dokuwiki
197 tests/lhs-test.markdown
198 tests/lhs-test.markdown+lhs
199 tests/lhs-test.rst
200 tests/lhs-test.rst+lhs
201 tests/lhs-test.latex
202 tests/lhs-test.latex+lhs
203 tests/lhs-test.html
204 tests/lhs-test.html+lhs
205 tests/lhs-test.fragment.html+lhs
206 tests/pipe-tables.txt
207 tests/dokuwiki_external_images.dokuwiki
208 tests/dokuwiki_external_images.native
209 tests/dokuwiki_multiblock_table.dokuwiki
210 tests/dokuwiki_multiblock_table.native
211 tests/fb2/*.markdown
212 tests/fb2/*.fb2
213 tests/fb2/images-embedded.html
214 tests/fb2/images-embedded.fb2
215 tests/fb2/test-small.png
216 tests/fb2/test.jpg
217 tests/docx/*.docx
218 tests/docx/*.native
219 tests/epub/*.epub
220 tests/epub/*.native
221 tests/txt2tags.t2t
222 tests/twiki-reader.twiki
223 tests/odt/odt/*.odt
224 tests/odt/markdown/*.md
225 tests/odt/native/*.native
226Source-repository head
227 type: git
228 location: git://github.com/jgm/pandoc.git
230Flag embed_data_files
231 Description: Embed data files in binary for relocatable executable.
232 Default: False
234Flag trypandoc
235 Description: Build trypandoc cgi executable.
236 Default: False
238Flag weigh-pandoc
239 Description: Build weigh-pandoc to measure memory usage.
240 Default: False
242Flag https
243 Description: Enable support for downloading of resources over https.
244 Default: True
246Flag network-uri
247 Description: Get Network.URI from the network-uri package
248 Default: True
250Flag old-locale
251 Description: Use old-locale and time < 1.5
252 Default: False
254custom-setup
255 setup-depends: base,
256 Cabal < 2
258Library
259 Build-Depends: base >= 4.7 && <5,
260 syb >= 0.1 && < 0.8,
261 containers >= 0.1 && < 0.6,
262 unordered-containers >= 0.2 && < 0.3,
263 array >= 0.3 && < 0.6,
264 parsec >= 3.1 && < 3.2,
265 mtl >= 2.2 && < 2.3,
266 filepath >= 1.1 && < 1.5,
267 process >= 1 && < 1.7,
268 directory >= 1 && < 1.4,
269 bytestring >= 0.9 && < 0.11,
270 text >= 0.11 && < 1.3,
271 zip-archive >= 0.2.3.4 && < 0.4,
272 HTTP >= 4000.0.5 && < 4000.4,
273 texmath >= 0.9 && < 0.10,
274 xml >= 1.3.12 && < 1.4,
275 random >= 1 && < 1.2,
276 extensible-exceptions >= 0.1 && < 0.2,
277 pandoc-types >= 1.17 && < 1.17.1,
278 aeson >= 0.7 && < 1.3,
279 tagsoup >= 0.13.7 && < 0.15,
280 base64-bytestring >= 0.1 && < 1.1,
281 zlib >= 0.5 && < 0.7,
282 skylighting >= 0.1.1.4 && < 0.2,
283 data-default >= 0.4 && < 0.8,
284 temporary >= 1.1 && < 1.3,
285 blaze-html >= 0.5 && < 0.10,
286 blaze-markup >= 0.5.1 && < 0.9,
287 yaml >= 0.8.8.2 && < 0.9,
288 scientific >= 0.2 && < 0.4,
289 vector >= 0.10 && < 0.13,
290 hslua >= 0.3 && < 0.5,
291 binary >= 0.5 && < 0.10,
292 SHA >= 1.6 && < 1.7,
293 haddock-library >= 1.1 && < 1.5,
294 old-time,
295 deepseq >= 1.3 && < 1.5,
296 JuicyPixels >= 3.1.6.1 && < 3.3,
297 filemanip >= 0.3 && < 0.4,
298 cmark >= 0.5 && < 0.6,
299 doctemplates >= 0.1 && < 0.2,
300 ghc-prim >= 0.2
301 if flag(old-locale)
302 Build-Depends: old-locale >= 1 && < 1.1,
303 time >= 1.2 && < 1.5
304 else
305 Build-Depends: time >= 1.5 && < 1.9
306 if flag(network-uri)
307 Build-Depends: network-uri >= 2.6 && < 2.7, network >= 2.6
308 else
309 Build-Depends: network >= 2 && < 2.6
310 if flag(https)
311 Build-Depends: http-client >= 0.4.30 && < 0.6,
312 http-client-tls >= 0.2.4 && < 0.4,
313 http-types >= 0.8 && < 0.10
314 cpp-options: -DHTTP_CLIENT
315 if flag(embed_data_files)
316 cpp-options: -DEMBED_DATA_FILES
317 Build-Tools: hsb2hs >= 0.3.1
318 other-modules: Text.Pandoc.Data
319 if os(windows)
320 Cpp-options: -D_WINDOWS
321 Ghc-Options: -Wall -fno-warn-unused-do-bind
322 Ghc-Prof-Options: -fprof-auto-exported
323 Default-Language: Haskell98
324 Other-Extensions: PatternGuards, OverloadedStrings,
325 ScopedTypeVariables, GeneralizedNewtypeDeriving,
326 RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
327 FlexibleInstances
328 Hs-Source-Dirs: src
329 if impl(ghc < 7.10)
330 Hs-Source-Dirs: prelude
331 Other-Modules: Prelude
333 Exposed-Modules: Text.Pandoc,
334 Text.Pandoc.Options,
335 Text.Pandoc.Pretty,
336 Text.Pandoc.Shared,
337 Text.Pandoc.MediaBag,
338 Text.Pandoc.Error,
339 Text.Pandoc.Readers.HTML,
340 Text.Pandoc.Readers.LaTeX,
341 Text.Pandoc.Readers.Markdown,
342 Text.Pandoc.Readers.CommonMark,
343 Text.Pandoc.Readers.MediaWiki,
344 Text.Pandoc.Readers.RST,
345 Text.Pandoc.Readers.Org,
346 Text.Pandoc.Readers.DocBook,
347 Text.Pandoc.Readers.OPML,
348 Text.Pandoc.Readers.TeXMath,
349 Text.Pandoc.Readers.Textile,
350 Text.Pandoc.Readers.Native,
351 Text.Pandoc.Readers.Haddock,
352 Text.Pandoc.Readers.TWiki,
353 Text.Pandoc.Readers.Txt2Tags,
354 Text.Pandoc.Readers.Docx,
355 Text.Pandoc.Readers.Odt,
356 Text.Pandoc.Readers.EPUB,
357 Text.Pandoc.Writers.Native,
358 Text.Pandoc.Writers.Docbook,
359 Text.Pandoc.Writers.OPML,
360 Text.Pandoc.Writers.HTML,
361 Text.Pandoc.Writers.ICML,
362 Text.Pandoc.Writers.LaTeX,
363 Text.Pandoc.Writers.ConTeXt,
364 Text.Pandoc.Writers.OpenDocument,
365 Text.Pandoc.Writers.Texinfo,
366 Text.Pandoc.Writers.Man,
367 Text.Pandoc.Writers.Markdown,
368 Text.Pandoc.Writers.CommonMark,
369 Text.Pandoc.Writers.Haddock,
370 Text.Pandoc.Writers.RST,
371 Text.Pandoc.Writers.Org,
372 Text.Pandoc.Writers.AsciiDoc,
373 Text.Pandoc.Writers.Custom,
374 Text.Pandoc.Writers.Textile,
375 Text.Pandoc.Writers.MediaWiki,
376 Text.Pandoc.Writers.DokuWiki,
377 Text.Pandoc.Writers.ZimWiki,
378 Text.Pandoc.Writers.RTF,
379 Text.Pandoc.Writers.ODT,
380 Text.Pandoc.Writers.Docx,
381 Text.Pandoc.Writers.EPUB,
382 Text.Pandoc.Writers.FB2,
383 Text.Pandoc.Writers.TEI,
384 Text.Pandoc.PDF,
385 Text.Pandoc.UTF8,
386 Text.Pandoc.Templates,
387 Text.Pandoc.XML,
388 Text.Pandoc.SelfContained,
389 Text.Pandoc.Process,
390 Text.Pandoc.CSS
391 Other-Modules: Text.Pandoc.Readers.Docx.Lists,
392 Text.Pandoc.Readers.Docx.Combine,
393 Text.Pandoc.Readers.Docx.Parse,
394 Text.Pandoc.Readers.Docx.Util,
395 Text.Pandoc.Readers.Docx.StyleMap,
396 Text.Pandoc.Readers.Odt.Base,
397 Text.Pandoc.Readers.Odt.Namespaces,
398 Text.Pandoc.Readers.Odt.StyleReader,
399 Text.Pandoc.Readers.Odt.ContentReader,
400 Text.Pandoc.Readers.Odt.Generic.Fallible,
401 Text.Pandoc.Readers.Odt.Generic.SetMap,
402 Text.Pandoc.Readers.Odt.Generic.Utils,
403 Text.Pandoc.Readers.Odt.Generic.Namespaces,
404 Text.Pandoc.Readers.Odt.Generic.XMLConverter,
405 Text.Pandoc.Readers.Odt.Arrows.State,
406 Text.Pandoc.Readers.Odt.Arrows.Utils,
407 Text.Pandoc.Readers.Org.BlockStarts,
408 Text.Pandoc.Readers.Org.Blocks,
409 Text.Pandoc.Readers.Org.ExportSettings,
410 Text.Pandoc.Readers.Org.Inlines,
411 Text.Pandoc.Readers.Org.Meta,
412 Text.Pandoc.Readers.Org.ParserState,
413 Text.Pandoc.Readers.Org.Parsing,
414 Text.Pandoc.Readers.Org.Shared,
415 Text.Pandoc.Writers.Shared,
416 Text.Pandoc.Asciify,
417 Text.Pandoc.MIME,
418 Text.Pandoc.Emoji,
419 Text.Pandoc.Parsing,
420 Text.Pandoc.UUID,
421 Text.Pandoc.ImageSize,
422 Text.Pandoc.Slides,
423 Text.Pandoc.Highlighting,
424 Text.Pandoc.Compat.Time,
425 Paths_pandoc
427 Buildable: True
429Executable pandoc
430 Build-Depends: pandoc,
431 pandoc-types >= 1.17 && < 1.18,
432 base >= 4.2 && <5,
433 directory >= 1.2 && < 1.4,
434 filepath >= 1.1 && < 1.5,
435 text >= 0.11 && < 1.3,
436 bytestring >= 0.9 && < 0.11,
437 extensible-exceptions >= 0.1 && < 0.2,
438 skylighting >= 0.1.1.5 && < 0.2,
439 aeson >= 0.7.0.5 && < 1.2,
440 yaml >= 0.8.8.2 && < 0.9,
441 containers >= 0.1 && < 0.6,
442 HTTP >= 4000.0.5 && < 4000.4
443 if flag(network-uri)
444 Build-Depends: network-uri >= 2.6 && < 2.7, network >= 2.6
445 else
446 Build-Depends: network >= 2 && < 2.6
447 Ghc-Options: -rtsopts -with-rtsopts=-K16m -Wall -fno-warn-unused-do-bind
448 Ghc-Prof-Options: -fprof-auto-exported -rtsopts -with-rtsopts=-K16m
449 if os(windows)
450 Cpp-options: -D_WINDOWS
451 else
452 Build-Depends: unix >= 2.4 && < 2.8
454 Default-Language: Haskell98
455 Other-Extensions: PatternGuards, OverloadedStrings,
456 ScopedTypeVariables, GeneralizedNewtypeDeriving,
457 RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
458 FlexibleInstances
459 Hs-Source-Dirs: .
460 if impl(ghc < 7.10)
461 Hs-Source-Dirs: prelude
462 Other-Modules: Prelude
463 Main-Is: pandoc.hs
464 Buildable: True
465 Other-Modules: Paths_pandoc
467Executable trypandoc
468 Main-Is: trypandoc.hs
469 Hs-Source-Dirs: trypandoc
470 if impl(ghc < 7.10)
471 Hs-Source-Dirs: prelude
472 Other-Modules: Prelude
473 default-language: Haskell2010
474 if flag(trypandoc)
475 Build-Depends: base, aeson, pandoc,
476 text, wai-extra, wai >= 0.3, http-types
477 Buildable: True
478 else
479 Buildable: False
481Executable weigh-pandoc
482 Main-Is: weigh-pandoc.hs
483 Hs-Source-Dirs: benchmark
484 if impl(ghc < 7.10)
485 Hs-Source-Dirs: prelude
486 Other-Modules: Prelude
487 if flag(weigh-pandoc)
488 Build-Depends: pandoc,
489 base >= 4.2 && < 5,
490 weigh >= 0.0 && < 0.1
491 Buildable: True
492 else
493 Buildable: False
494 Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind
495 Default-Language: Haskell98
497Test-Suite test-pandoc
498 Type: exitcode-stdio-1.0
499 Main-Is: test-pandoc.hs
500 Hs-Source-Dirs: tests
501 if impl(ghc < 7.10)
502 Hs-Source-Dirs: prelude
503 Other-Modules: Prelude
504 Build-Depends: base >= 4.2 && < 5,
505 syb >= 0.1 && < 0.8,
506 pandoc,
507 pandoc-types >= 1.17 && < 1.18,
508 bytestring >= 0.9 && < 0.11,
509 text >= 0.11 && < 1.3,
510 directory >= 1 && < 1.4,
511 filepath >= 1.1 && < 1.5,
512 process >= 1 && < 1.7,
513 skylighting >= 0.1.1.3 && < 0.2,
514 Diff >= 0.2 && < 0.4,
515 test-framework >= 0.3 && < 0.9,
516 test-framework-hunit >= 0.2 && < 0.4,
517 test-framework-quickcheck2 >= 0.2.9 && < 0.4,
518 QuickCheck >= 2.4 && < 2.11,
519 HUnit >= 1.2 && < 1.7,
520 containers >= 0.1 && < 0.6,
521 ansi-terminal >= 0.5 && < 0.8,
522 executable-path >= 0.0 && < 0.4,
523 zip-archive >= 0.2.3.4 && < 0.4
524 Other-Modules: Tests.Old
525 Tests.Helpers
526 Tests.Shared
527 Tests.Walk
528 Tests.Readers.LaTeX
529 Tests.Readers.HTML
530 Tests.Readers.Markdown
531 Tests.Readers.Org
532 Tests.Readers.RST
533 Tests.Readers.Docx
534 Tests.Readers.Odt
535 Tests.Readers.Txt2Tags
536 Tests.Readers.EPUB
537 Tests.Writers.Native
538 Tests.Writers.ConTeXt
539 Tests.Writers.Docbook
540 Tests.Writers.HTML
541 Tests.Writers.Markdown
542 Tests.Writers.Plain
543 Tests.Writers.AsciiDoc
544 Tests.Writers.LaTeX
545 Tests.Writers.Docx
546 Tests.Writers.RST
547 Tests.Writers.TEI
548 Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind -threaded
549 Default-Language: Haskell98
551benchmark benchmark-pandoc
552 Type: exitcode-stdio-1.0
553 Main-Is: benchmark-pandoc.hs
554 Hs-Source-Dirs: benchmark
555 if impl(ghc < 7.10)
556 Hs-Source-Dirs: prelude
557 Other-Modules: Prelude
558 Build-Depends: pandoc,
559 base >= 4.2 && < 5,
560 syb >= 0.1 && < 0.8,
561 criterion >= 1.0 && < 1.3
562 Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind
563 Default-Language: Haskell98