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