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