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