git.iko.soy/typeable/pandoc
on 1.19.2.1 help sign in
typeable/pandoc/pandoc.cabal
559 lines 23 kB history raw
1Name: pandoc
2Version: 1.19.2.1
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
254Library
255 Build-Depends: base >= 4.7 && <5,
256 syb >= 0.1 && < 0.7,
257 containers >= 0.1 && < 0.6,
258 unordered-containers >= 0.2 && < 0.3,
259 array >= 0.3 && < 0.6,
260 parsec >= 3.1 && < 3.2,
261 mtl >= 2.2 && < 2.3,
262 filepath >= 1.1 && < 1.5,
263 process >= 1 && < 1.5,
264 directory >= 1 && < 1.4,
265 bytestring >= 0.9 && < 0.11,
266 text >= 0.11 && < 1.3,
267 zip-archive >= 0.2.3.4 && < 0.4,
268 HTTP >= 4000.0.5 && < 4000.4,
269 texmath >= 0.9 && < 0.10,
270 xml >= 1.3.12 && < 1.4,
271 random >= 1 && < 1.2,
272 extensible-exceptions >= 0.1 && < 0.2,
273 pandoc-types >= 1.17 && < 1.18,
274 aeson >= 0.7 && < 1.2,
275 tagsoup >= 0.13.7 && < 0.15,
276 base64-bytestring >= 0.1 && < 1.1,
277 zlib >= 0.5 && < 0.7,
278 skylighting >= 0.1.1.4 && < 0.2,
279 data-default >= 0.4 && < 0.8,
280 temporary >= 1.1 && < 1.3,
281 blaze-html >= 0.5 && < 0.10,
282 blaze-markup >= 0.5.1 && < 0.9,
283 yaml >= 0.8.8.2 && < 0.9,
284 scientific >= 0.2 && < 0.4,
285 vector >= 0.10 && < 0.13,
286 hslua >= 0.3 && < 0.5,
287 binary >= 0.5 && < 0.9,
288 SHA >= 1.6 && < 1.7,
289 haddock-library >= 1.1 && < 1.5,
290 old-time,
291 deepseq >= 1.3 && < 1.5,
292 JuicyPixels >= 3.1.6.1 && < 3.3,
293 filemanip >= 0.3 && < 0.4,
294 cmark >= 0.5 && < 0.6,
295 doctemplates >= 0.1 && < 0.2,
296 ghc-prim >= 0.2
297 if flag(old-locale)
298 Build-Depends: old-locale >= 1 && < 1.1,
299 time >= 1.2 && < 1.5
300 else
301 Build-Depends: time >= 1.5 && < 1.7
302 if flag(network-uri)
303 Build-Depends: network-uri >= 2.6 && < 2.7, network >= 2.6
304 else
305 Build-Depends: network >= 2 && < 2.6
306 if flag(https)
307 Build-Depends: http-client >= 0.4.30 && < 0.6,
308 http-client-tls >= 0.2.4 && < 0.4,
309 http-types >= 0.8 && < 0.10
310 cpp-options: -DHTTP_CLIENT
311 if flag(embed_data_files)
312 cpp-options: -DEMBED_DATA_FILES
313 Build-Tools: hsb2hs >= 0.3.1
314 other-modules: Text.Pandoc.Data
315 if os(windows)
316 Cpp-options: -D_WINDOWS
317 Ghc-Options: -Wall -fno-warn-unused-do-bind
318 Ghc-Prof-Options: -fprof-auto-exported
319 Default-Language: Haskell98
320 Other-Extensions: PatternGuards, OverloadedStrings,
321 ScopedTypeVariables, GeneralizedNewtypeDeriving,
322 RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
323 FlexibleInstances
324 Hs-Source-Dirs: src
325 if impl(ghc < 7.10)
326 Hs-Source-Dirs: prelude
327 Other-Modules: Prelude
329 Exposed-Modules: Text.Pandoc,
330 Text.Pandoc.Options,
331 Text.Pandoc.Pretty,
332 Text.Pandoc.Shared,
333 Text.Pandoc.MediaBag,
334 Text.Pandoc.Error,
335 Text.Pandoc.Readers.HTML,
336 Text.Pandoc.Readers.LaTeX,
337 Text.Pandoc.Readers.Markdown,
338 Text.Pandoc.Readers.CommonMark,
339 Text.Pandoc.Readers.MediaWiki,
340 Text.Pandoc.Readers.RST,
341 Text.Pandoc.Readers.Org,
342 Text.Pandoc.Readers.DocBook,
343 Text.Pandoc.Readers.OPML,
344 Text.Pandoc.Readers.TeXMath,
345 Text.Pandoc.Readers.Textile,
346 Text.Pandoc.Readers.Native,
347 Text.Pandoc.Readers.Haddock,
348 Text.Pandoc.Readers.TWiki,
349 Text.Pandoc.Readers.Txt2Tags,
350 Text.Pandoc.Readers.Docx,
351 Text.Pandoc.Readers.Odt,
352 Text.Pandoc.Readers.EPUB,
353 Text.Pandoc.Writers.Native,
354 Text.Pandoc.Writers.Docbook,
355 Text.Pandoc.Writers.OPML,
356 Text.Pandoc.Writers.HTML,
357 Text.Pandoc.Writers.ICML,
358 Text.Pandoc.Writers.LaTeX,
359 Text.Pandoc.Writers.ConTeXt,
360 Text.Pandoc.Writers.OpenDocument,
361 Text.Pandoc.Writers.Texinfo,
362 Text.Pandoc.Writers.Man,
363 Text.Pandoc.Writers.Markdown,
364 Text.Pandoc.Writers.CommonMark,
365 Text.Pandoc.Writers.Haddock,
366 Text.Pandoc.Writers.RST,
367 Text.Pandoc.Writers.Org,
368 Text.Pandoc.Writers.AsciiDoc,
369 Text.Pandoc.Writers.Custom,
370 Text.Pandoc.Writers.Textile,
371 Text.Pandoc.Writers.MediaWiki,
372 Text.Pandoc.Writers.DokuWiki,
373 Text.Pandoc.Writers.ZimWiki,
374 Text.Pandoc.Writers.RTF,
375 Text.Pandoc.Writers.ODT,
376 Text.Pandoc.Writers.Docx,
377 Text.Pandoc.Writers.EPUB,
378 Text.Pandoc.Writers.FB2,
379 Text.Pandoc.Writers.TEI,
380 Text.Pandoc.PDF,
381 Text.Pandoc.UTF8,
382 Text.Pandoc.Templates,
383 Text.Pandoc.XML,
384 Text.Pandoc.SelfContained,
385 Text.Pandoc.Process,
386 Text.Pandoc.CSS
387 Other-Modules: Text.Pandoc.Readers.Docx.Lists,
388 Text.Pandoc.Readers.Docx.Combine,
389 Text.Pandoc.Readers.Docx.Parse,
390 Text.Pandoc.Readers.Docx.Util,
391 Text.Pandoc.Readers.Docx.StyleMap,
392 Text.Pandoc.Readers.Odt.Base,
393 Text.Pandoc.Readers.Odt.Namespaces,
394 Text.Pandoc.Readers.Odt.StyleReader,
395 Text.Pandoc.Readers.Odt.ContentReader,
396 Text.Pandoc.Readers.Odt.Generic.Fallible,
397 Text.Pandoc.Readers.Odt.Generic.SetMap,
398 Text.Pandoc.Readers.Odt.Generic.Utils,
399 Text.Pandoc.Readers.Odt.Generic.Namespaces,
400 Text.Pandoc.Readers.Odt.Generic.XMLConverter,
401 Text.Pandoc.Readers.Odt.Arrows.State,
402 Text.Pandoc.Readers.Odt.Arrows.Utils,
403 Text.Pandoc.Readers.Org.BlockStarts,
404 Text.Pandoc.Readers.Org.Blocks,
405 Text.Pandoc.Readers.Org.ExportSettings,
406 Text.Pandoc.Readers.Org.Inlines,
407 Text.Pandoc.Readers.Org.Meta,
408 Text.Pandoc.Readers.Org.ParserState,
409 Text.Pandoc.Readers.Org.Parsing,
410 Text.Pandoc.Readers.Org.Shared,
411 Text.Pandoc.Writers.Shared,
412 Text.Pandoc.Asciify,
413 Text.Pandoc.MIME,
414 Text.Pandoc.Emoji,
415 Text.Pandoc.Parsing,
416 Text.Pandoc.UUID,
417 Text.Pandoc.ImageSize,
418 Text.Pandoc.Slides,
419 Text.Pandoc.Highlighting,
420 Text.Pandoc.Compat.Time,
421 Paths_pandoc
423 Buildable: True
425Executable pandoc
426 Build-Depends: pandoc,
427 pandoc-types >= 1.17 && < 1.18,
428 base >= 4.2 && <5,
429 directory >= 1.2 && < 1.4,
430 filepath >= 1.1 && < 1.5,
431 text >= 0.11 && < 1.3,
432 bytestring >= 0.9 && < 0.11,
433 extensible-exceptions >= 0.1 && < 0.2,
434 skylighting >= 0.1.1.3 && < 0.2,
435 aeson >= 0.7.0.5 && < 1.2,
436 yaml >= 0.8.8.2 && < 0.9,
437 containers >= 0.1 && < 0.6,
438 HTTP >= 4000.0.5 && < 4000.4
439 if flag(network-uri)
440 Build-Depends: network-uri >= 2.6 && < 2.7, network >= 2.6
441 else
442 Build-Depends: network >= 2 && < 2.6
443 Ghc-Options: -rtsopts -with-rtsopts=-K16m -Wall -fno-warn-unused-do-bind
444 Ghc-Prof-Options: -fprof-auto-exported -rtsopts -with-rtsopts=-K16m
445 if os(windows)
446 Cpp-options: -D_WINDOWS
447 else
448 Build-Depends: unix >= 2.4 && < 2.8
450 Default-Language: Haskell98
451 Other-Extensions: PatternGuards, OverloadedStrings,
452 ScopedTypeVariables, GeneralizedNewtypeDeriving,
453 RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
454 FlexibleInstances
455 Hs-Source-Dirs: .
456 if impl(ghc < 7.10)
457 Hs-Source-Dirs: prelude
458 Other-Modules: Prelude
459 Main-Is: pandoc.hs
460 Buildable: True
461 Other-Modules: Paths_pandoc
463Executable trypandoc
464 Main-Is: trypandoc.hs
465 Hs-Source-Dirs: trypandoc
466 if impl(ghc < 7.10)
467 Hs-Source-Dirs: prelude
468 Other-Modules: Prelude
469 default-language: Haskell2010
470 if flag(trypandoc)
471 Build-Depends: base, aeson, pandoc,
472 text, wai-extra, wai >= 0.3, http-types
473 Buildable: True
474 else
475 Buildable: False
477Executable weigh-pandoc
478 Main-Is: weigh-pandoc.hs
479 Hs-Source-Dirs: benchmark
480 if impl(ghc < 7.10)
481 Hs-Source-Dirs: prelude
482 Other-Modules: Prelude
483 if flag(weigh-pandoc)
484 Build-Depends: pandoc,
485 base >= 4.2 && < 5,
486 weigh >= 0.0 && < 0.1
487 Buildable: True
488 else
489 Buildable: False
490 Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind
491 Default-Language: Haskell98
493Test-Suite test-pandoc
494 Type: exitcode-stdio-1.0
495 Main-Is: test-pandoc.hs
496 Hs-Source-Dirs: tests
497 if impl(ghc < 7.10)
498 Hs-Source-Dirs: prelude
499 Other-Modules: Prelude
500 Build-Depends: base >= 4.2 && < 5,
501 syb >= 0.1 && < 0.7,
502 pandoc,
503 pandoc-types >= 1.17 && < 1.18,
504 bytestring >= 0.9 && < 0.11,
505 text >= 0.11 && < 1.3,
506 directory >= 1 && < 1.4,
507 filepath >= 1.1 && < 1.5,
508 process >= 1 && < 1.5,
509 skylighting >= 0.1.1.3 && < 0.2,
510 Diff >= 0.2 && < 0.4,
511 test-framework >= 0.3 && < 0.9,
512 test-framework-hunit >= 0.2 && < 0.4,
513 test-framework-quickcheck2 >= 0.2.9 && < 0.4,
514 QuickCheck >= 2.4 && < 2.10,
515 HUnit >= 1.2 && < 1.6,
516 containers >= 0.1 && < 0.6,
517 ansi-terminal >= 0.5 && < 0.7,
518 executable-path >= 0.0 && < 0.1,
519 zip-archive >= 0.2.3.4 && < 0.4
520 Other-Modules: Tests.Old
521 Tests.Helpers
522 Tests.Shared
523 Tests.Walk
524 Tests.Readers.LaTeX
525 Tests.Readers.HTML
526 Tests.Readers.Markdown
527 Tests.Readers.Org
528 Tests.Readers.RST
529 Tests.Readers.Docx
530 Tests.Readers.Odt
531 Tests.Readers.Txt2Tags
532 Tests.Readers.EPUB
533 Tests.Writers.Native
534 Tests.Writers.ConTeXt
535 Tests.Writers.Docbook
536 Tests.Writers.HTML
537 Tests.Writers.Markdown
538 Tests.Writers.Plain
539 Tests.Writers.AsciiDoc
540 Tests.Writers.LaTeX
541 Tests.Writers.Docx
542 Tests.Writers.RST
543 Tests.Writers.TEI
544 Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind -threaded
545 Default-Language: Haskell98
547benchmark benchmark-pandoc
548 Type: exitcode-stdio-1.0
549 Main-Is: benchmark-pandoc.hs
550 Hs-Source-Dirs: benchmark
551 if impl(ghc < 7.10)
552 Hs-Source-Dirs: prelude
553 Other-Modules: Prelude
554 Build-Depends: pandoc,
555 base >= 4.2 && < 5,
556 syb >= 0.1 && < 0.7,
557 criterion >= 1.0 && < 1.2
558 Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind
559 Default-Language: Haskell98