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