git.iko.soy/typeable/pandoc
on newlatex help sign in
typeable/pandoc/pandoc.cabal
598 lines 24 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, Muse, Vimwiki, Word Docx, ODT,
22 and Textile, and it can write Markdown, reStructuredText,
23 XHTML, HTML 5, LaTeX, ConTeXt, DocBook, JATS, OPML, TEI,
24 OpenDocument, ODT, Word docx, RTF, MediaWiki, DokuWiki,
25 ZimWiki, Textile, groff man, groff ms, plain text,
26 Emacs Org-Mode, AsciiDoc, Haddock markup, EPUB (v2 and v3),
27 FictionBook2, InDesign ICML, Muse, and several kinds of
28 HTML/javascript slide shows (S5, Slidy, Slideous,
29 DZSlides, reveal.js).
30 .
31 In contrast to most existing tools for converting Markdown
32 to HTML, pandoc has a modular design: it consists of a set of
33 readers, which parse text in a given format and produce a
34 native representation of the document, and a set of writers,
35 which convert this native representation into a target
36 format. Thus, adding an input or output format requires
37 only adding a reader or writer.
38Data-Files:
39 -- templates
40 data/templates/default.html4
41 data/templates/default.html5
42 data/templates/default.docbook4
43 data/templates/default.docbook5
44 data/templates/default.jats
45 data/templates/default.tei
46 data/templates/default.beamer
47 data/templates/default.opendocument
48 data/templates/default.icml
49 data/templates/default.opml
50 data/templates/default.latex
51 data/templates/default.context
52 data/templates/default.texinfo
53 data/templates/default.man
54 data/templates/default.ms
55 data/templates/default.markdown
56 data/templates/default.muse
57 data/templates/default.commonmark
58 data/templates/default.rst
59 data/templates/default.plain
60 data/templates/default.mediawiki
61 data/templates/default.dokuwiki
62 data/templates/default.zimwiki
63 data/templates/default.rtf
64 data/templates/default.s5
65 data/templates/default.slidy
66 data/templates/default.slideous
67 data/templates/default.revealjs
68 data/templates/default.dzslides
69 data/templates/default.asciidoc
70 data/templates/default.haddock
71 data/templates/default.textile
72 data/templates/default.org
73 data/templates/default.epub2
74 data/templates/default.epub3
75 -- source files for reference.docx
76 data/docx/[Content_Types].xml
77 data/docx/_rels/.rels
78 data/docx/docProps/app.xml
79 data/docx/docProps/core.xml
80 data/docx/word/document.xml
81 data/docx/word/fontTable.xml
82 data/docx/word/footnotes.xml
83 data/docx/word/numbering.xml
84 data/docx/word/settings.xml
85 data/docx/word/webSettings.xml
86 data/docx/word/styles.xml
87 data/docx/word/_rels/document.xml.rels
88 data/docx/word/_rels/footnotes.xml.rels
89 data/docx/word/theme/theme1.xml
90 -- source files for reference.odt
91 data/odt/mimetype
92 data/odt/manifest.rdf
93 data/odt/styles.xml
94 data/odt/content.xml
95 data/odt/meta.xml
96 data/odt/settings.xml
97 data/odt/Configurations2/accelerator/current.xml
98 data/odt/Thumbnails/thumbnail.png
99 data/odt/META-INF/manifest.xml
100 -- stylesheet for EPUB writer
101 data/epub.css
102 -- data for LaTeXMathML writer
103 data/LaTeXMathML.js
104 -- data for dzslides writer
105 data/dzslides/template.html
106 -- default abbreviations file
107 data/abbreviations
108 -- sample lua custom writer
109 data/sample.lua
110 -- pandoc lua module
111 data/pandoc.lua
112 -- sample highlighting theme
113 data/default.theme
114 -- bash completion template
115 data/bash_completion.tpl
116 -- jats csl
117 data/jats.csl
118 -- documentation
119 MANUAL.txt, COPYRIGHT
120Extra-Source-Files:
121 -- documentation
122 INSTALL.md, BUGS, README.md, CONTRIBUTING.md, changelog
123 man/pandoc.1
124 -- stack build plan
125 stack.yaml
126 -- files needed to build man page
127 man/capitalizeHeaders.hs
128 man/removeNotes.hs
129 man/removeLinks.hs
130 man/pandoc.1.template
131 -- trypandoc
132 trypandoc/Makefile
133 trypandoc/index.html
134 -- tests
135 test/bodybg.gif
136 test/*.native
137 test/command/*.md
138 test/command/abbrevs
139 test/command/SVG_logo-without-xml-declaration.svg
140 test/command/SVG_logo.svg
141 test/command/corrupt.svg
142 test/command/inkscape-cube.svg
143 test/command/sub-file-chapter-1.tex
144 test/command/sub-file-chapter-2.tex
145 test/command/3510-subdoc.org
146 test/command/3510-export.latex
147 test/command/3510-src.hs
148 test/docbook-reader.docbook
149 test/docbook-xref.docbook
150 test/html-reader.html
151 test/opml-reader.opml
152 test/haddock-reader.haddock
153 test/insert
154 test/lalune.jpg
155 test/movie.jpg
156 test/media/rId25.jpg
157 test/media/rId26.jpg
158 test/media/rId27.jpg
159 test/latex-reader.latex
160 test/textile-reader.textile
161 test/markdown-reader-more.txt
162 test/markdown-citations.txt
163 test/textile-reader.textile
164 test/mediawiki-reader.wiki
165 test/vimwiki-reader.wiki
166 test/rst-reader.rst
167 test/s5-basic.html
168 test/s5-fancy.html
169 test/s5-fragment.html
170 test/s5-inserts.html
171 test/tables.context
172 test/tables.docbook4
173 test/tables.docbook5
174 test/tables.jats
175 test/tables.dokuwiki
176 test/tables.zimwiki
177 test/tables.icml
178 test/tables.html4
179 test/tables.html5
180 test/tables.latex
181 test/tables.man
182 test/tables.ms
183 test/tables.plain
184 test/tables.markdown
185 test/tables.mediawiki
186 test/tables.tei
187 test/tables.textile
188 test/tables.opendocument
189 test/tables.org
190 test/tables.asciidoc
191 test/tables.haddock
192 test/tables.texinfo
193 test/tables.rst
194 test/tables.rtf
195 test/tables.txt
196 test/tables.fb2
197 test/tables.muse
198 test/testsuite.txt
199 test/writer.latex
200 test/writer.context
201 test/writer.docbook4
202 test/writer.docbook5
203 test/writer.jats
204 test/writer.html4
205 test/writer.html5
206 test/writer.man
207 test/writer.ms
208 test/writer.markdown
209 test/writer.plain
210 test/writer.mediawiki
211 test/writer.textile
212 test/writer.opendocument
213 test/writer.org
214 test/writer.asciidoc
215 test/writer.haddock
216 test/writer.rst
217 test/writer.icml
218 test/writer.rtf
219 test/writer.tei
220 test/writer.texinfo
221 test/writer.fb2
222 test/writer.opml
223 test/writer.dokuwiki
224 test/writer.zimwiki
225 test/writer.muse
226 test/writers-lang-and-dir.latex
227 test/writers-lang-and-dir.context
228 test/dokuwiki_inline_formatting.dokuwiki
229 test/lhs-test.markdown
230 test/lhs-test.markdown+lhs
231 test/lhs-test.rst
232 test/lhs-test.rst+lhs
233 test/lhs-test.latex
234 test/lhs-test.latex+lhs
235 test/lhs-test.html
236 test/lhs-test.html+lhs
237 test/lhs-test.fragment.html+lhs
238 test/pipe-tables.txt
239 test/dokuwiki_external_images.dokuwiki
240 test/dokuwiki_external_images.native
241 test/dokuwiki_multiblock_table.dokuwiki
242 test/dokuwiki_multiblock_table.native
243 test/fb2/*.markdown
244 test/fb2/*.fb2
245 test/fb2/images-embedded.html
246 test/fb2/images-embedded.fb2
247 test/fb2/test-small.png
248 test/fb2/test.jpg
249 test/docx/*.docx
250 test/docx/*.native
251 test/epub/*.epub
252 test/epub/*.native
253 test/txt2tags.t2t
254 test/twiki-reader.twiki
255 test/odt/odt/*.odt
256 test/odt/markdown/*.md
257 test/odt/native/*.native
258 test/lua/*.lua
259Source-repository head
260 type: git
261 location: git://github.com/jgm/pandoc.git
263Flag embed_data_files
264 Description: Embed data files in binary for relocatable executable.
265 Default: False
267Flag trypandoc
268 Description: Build trypandoc cgi executable.
269 Default: False
271Flag weigh-pandoc
272 Description: Build weigh-pandoc to measure memory usage.
273 Default: False
275Flag network-uri
276 Description: Get Network.URI from the network-uri package
277 Default: True
279Flag old-locale
280 Description: Use old-locale and time < 1.5
281 Default: False
283Library
284 Build-Depends: base >= 4.7 && < 5,
285 syb >= 0.1 && < 0.8,
286 containers >= 0.1 && < 0.6,
287 unordered-containers >= 0.2 && < 0.3,
288 parsec >= 3.1 && < 3.2,
289 mtl >= 2.2 && < 2.3,
290 filepath >= 1.1 && < 1.5,
291 process >= 1.2.3 && < 1.7,
292 directory >= 1 && < 1.4,
293 bytestring >= 0.9 && < 0.11,
294 text >= 0.11 && < 1.3,
295 safe >= 0.3 && < 0.4,
296 zip-archive >= 0.2.3.4 && < 0.4,
297 HTTP >= 4000.0.5 && < 4000.4,
298 texmath >= 0.9.4.1 && < 0.10,
299 xml >= 1.3.12 && < 1.4,
300 random >= 1 && < 1.2,
301 pandoc-types >= 1.17 && < 1.18,
302 aeson >= 0.7 && < 1.3,
303 aeson-pretty >= 0.8 && < 0.9,
304 tagsoup >= 0.13.7 && < 0.15,
305 base64-bytestring >= 0.1 && < 1.1,
306 zlib >= 0.5 && < 0.7,
307 skylighting >= 0.3.3 && < 0.4,
308 data-default >= 0.4 && < 0.8,
309 temporary >= 1.1 && < 1.3,
310 blaze-html >= 0.5 && < 0.10,
311 blaze-markup >= 0.5.1 && < 0.9,
312 yaml >= 0.8.8.2 && < 0.9,
313 scientific >= 0.2 && < 0.4,
314 vector >= 0.10 && < 0.13,
315 hslua >= 0.4 && < 0.6,
316 binary >= 0.5 && < 0.9,
317 SHA >= 1.6 && < 1.7,
318 haddock-library >= 1.1 && < 1.5,
319 deepseq >= 1.3 && < 1.5,
320 JuicyPixels >= 3.1.6.1 && < 3.3,
321 Glob >= 0.7 && < 0.8,
322 cmark >= 0.5 && < 0.6,
323 doctemplates >= 0.1 && < 0.2,
324 http-client >= 0.4.30 && < 0.6,
325 http-client-tls >= 0.2.4 && < 0.4,
326 http-types >= 0.8 && < 0.10
327 if os(windows)
328 Cpp-options: -D_WINDOWS
329 else
330 Build-Depends: unix >= 2.4 && < 2.8
331 if flag(old-locale)
332 Build-Depends: old-locale >= 1 && < 1.1,
333 time >= 1.2 && < 1.5
334 else
335 Build-Depends: time >= 1.5 && < 1.9
336 if flag(network-uri)
337 Build-Depends: network-uri >= 2.6 && < 2.7, network >= 2.6
338 else
339 Build-Depends: network >= 2 && < 2.6
340 if flag(embed_data_files)
341 cpp-options: -DEMBED_DATA_FILES
342 build-depends: file-embed >= 0.0 && < 0.1
343 other-modules: Text.Pandoc.Data
344 if os(windows)
345 Cpp-options: -D_WINDOWS
346 Ghc-Options: -Wall -fno-warn-unused-do-bind
347 Ghc-Prof-Options: -fprof-auto-exported
348 Default-Language: Haskell98
349 Other-Extensions: PatternGuards, OverloadedStrings,
350 ScopedTypeVariables, GeneralizedNewtypeDeriving,
351 RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
352 FlexibleInstances
353 Hs-Source-Dirs: src
354 if impl(ghc < 7.10)
355 Hs-Source-Dirs: prelude
356 Other-Modules: Prelude
358 Exposed-Modules: Text.Pandoc,
359 Text.Pandoc.App,
360 Text.Pandoc.Options,
361 Text.Pandoc.Extensions,
362 Text.Pandoc.Pretty,
363 Text.Pandoc.Shared,
364 Text.Pandoc.MediaBag,
365 Text.Pandoc.Error,
366 Text.Pandoc.Readers,
367 Text.Pandoc.Readers.HTML,
368 Text.Pandoc.Readers.LaTeX,
369 Text.Pandoc.Readers.LaTeX.Types,
370 Text.Pandoc.Readers.Markdown,
371 Text.Pandoc.Readers.CommonMark,
372 Text.Pandoc.Readers.MediaWiki,
373 Text.Pandoc.Readers.Vimwiki,
374 Text.Pandoc.Readers.RST,
375 Text.Pandoc.Readers.Org,
376 Text.Pandoc.Readers.DocBook,
377 Text.Pandoc.Readers.OPML,
378 Text.Pandoc.Readers.Textile,
379 Text.Pandoc.Readers.Native,
380 Text.Pandoc.Readers.Haddock,
381 Text.Pandoc.Readers.TWiki,
382 Text.Pandoc.Readers.Txt2Tags,
383 Text.Pandoc.Readers.Docx,
384 Text.Pandoc.Readers.Odt,
385 Text.Pandoc.Readers.EPUB,
386 Text.Pandoc.Readers.Muse,
387 Text.Pandoc.Writers,
388 Text.Pandoc.Writers.Native,
389 Text.Pandoc.Writers.Docbook,
390 Text.Pandoc.Writers.JATS,
391 Text.Pandoc.Writers.OPML,
392 Text.Pandoc.Writers.HTML,
393 Text.Pandoc.Writers.ICML,
394 Text.Pandoc.Writers.LaTeX,
395 Text.Pandoc.Writers.ConTeXt,
396 Text.Pandoc.Writers.OpenDocument,
397 Text.Pandoc.Writers.Texinfo,
398 Text.Pandoc.Writers.Man,
399 Text.Pandoc.Writers.Ms,
400 Text.Pandoc.Writers.Markdown,
401 Text.Pandoc.Writers.CommonMark,
402 Text.Pandoc.Writers.Haddock,
403 Text.Pandoc.Writers.RST,
404 Text.Pandoc.Writers.Org,
405 Text.Pandoc.Writers.AsciiDoc,
406 Text.Pandoc.Writers.Custom,
407 Text.Pandoc.Writers.Textile,
408 Text.Pandoc.Writers.MediaWiki,
409 Text.Pandoc.Writers.DokuWiki,
410 Text.Pandoc.Writers.ZimWiki,
411 Text.Pandoc.Writers.RTF,
412 Text.Pandoc.Writers.ODT,
413 Text.Pandoc.Writers.Docx,
414 Text.Pandoc.Writers.EPUB,
415 Text.Pandoc.Writers.FB2,
416 Text.Pandoc.Writers.TEI,
417 Text.Pandoc.Writers.Muse,
418 Text.Pandoc.Writers.Math,
419 Text.Pandoc.Writers.Shared,
420 Text.Pandoc.Lua,
421 Text.Pandoc.PDF,
422 Text.Pandoc.UTF8,
423 Text.Pandoc.Templates,
424 Text.Pandoc.XML,
425 Text.Pandoc.SelfContained,
426 Text.Pandoc.Highlighting,
427 Text.Pandoc.Logging,
428 Text.Pandoc.Process,
429 Text.Pandoc.MIME,
430 Text.Pandoc.Parsing,
431 Text.Pandoc.Asciify,
432 Text.Pandoc.Emoji,
433 Text.Pandoc.ImageSize,
434 Text.Pandoc.Class
435 Other-Modules: Text.Pandoc.Readers.Docx.Lists,
436 Text.Pandoc.Readers.Docx.Combine,
437 Text.Pandoc.Readers.Docx.Parse,
438 Text.Pandoc.Readers.Docx.Util,
439 Text.Pandoc.Readers.Docx.StyleMap,
440 Text.Pandoc.Readers.Odt.Base,
441 Text.Pandoc.Readers.Odt.Namespaces,
442 Text.Pandoc.Readers.Odt.StyleReader,
443 Text.Pandoc.Readers.Odt.ContentReader,
444 Text.Pandoc.Readers.Odt.Generic.Fallible,
445 Text.Pandoc.Readers.Odt.Generic.SetMap,
446 Text.Pandoc.Readers.Odt.Generic.Utils,
447 Text.Pandoc.Readers.Odt.Generic.Namespaces,
448 Text.Pandoc.Readers.Odt.Generic.XMLConverter,
449 Text.Pandoc.Readers.Odt.Arrows.State,
450 Text.Pandoc.Readers.Odt.Arrows.Utils,
451 Text.Pandoc.Readers.Org.BlockStarts,
452 Text.Pandoc.Readers.Org.Blocks,
453 Text.Pandoc.Readers.Org.DocumentTree,
454 Text.Pandoc.Readers.Org.ExportSettings,
455 Text.Pandoc.Readers.Org.Inlines,
456 Text.Pandoc.Readers.Org.Meta,
457 Text.Pandoc.Readers.Org.ParserState,
458 Text.Pandoc.Readers.Org.Parsing,
459 Text.Pandoc.Readers.Org.Shared,
460 Text.Pandoc.Lua.Compat,
461 Text.Pandoc.Lua.PandocModule,
462 Text.Pandoc.Lua.SharedInstances,
463 Text.Pandoc.Lua.StackInstances,
464 Text.Pandoc.Lua.Util,
465 Text.Pandoc.CSS,
466 Text.Pandoc.UUID,
467 Text.Pandoc.BCP47
468 Text.Pandoc.Slides,
469 Text.Pandoc.Compat.Time,
470 Paths_pandoc
472 Buildable: True
474Executable pandoc
475 Build-Depends: pandoc, base >= 4.7 && < 5
476 Ghc-Options: -rtsopts -with-rtsopts=-K16m -Wall -fno-warn-unused-do-bind
477 Ghc-Prof-Options: -fprof-auto-exported -rtsopts -with-rtsopts=-K16m
479 Default-Language: Haskell98
480 Other-Extensions: PatternGuards, OverloadedStrings,
481 ScopedTypeVariables, GeneralizedNewtypeDeriving,
482 RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
483 FlexibleInstances
484 Hs-Source-Dirs: .
485 if impl(ghc < 7.10)
486 Hs-Source-Dirs: prelude
487 Other-Modules: Prelude
488 Main-Is: pandoc.hs
489 Buildable: True
490 Other-Modules: Paths_pandoc
492Executable trypandoc
493 Main-Is: trypandoc.hs
494 Hs-Source-Dirs: trypandoc
495 if impl(ghc < 7.10)
496 Hs-Source-Dirs: prelude
497 Other-Modules: Prelude
498 default-language: Haskell2010
499 if flag(trypandoc)
500 Build-Depends: base, aeson, pandoc,
501 text, wai-extra, wai >= 0.3, http-types
502 Buildable: True
503 else
504 Buildable: False
506Executable weigh-pandoc
507 Main-Is: weigh-pandoc.hs
508 Hs-Source-Dirs: benchmark
509 if impl(ghc < 7.10)
510 Hs-Source-Dirs: prelude
511 Other-Modules: Prelude
512 if flag(weigh-pandoc)
513 Build-Depends: pandoc,
514 base >= 4.2 && < 5,
515 text,
516 weigh >= 0.0 && < 0.1,
517 mtl >= 2.2 && < 2.3
518 Buildable: True
519 else
520 Buildable: False
521 Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind
522 Default-Language: Haskell98
524Test-Suite test-pandoc
525 Type: exitcode-stdio-1.0
526 Main-Is: test-pandoc.hs
527 Hs-Source-Dirs: test
528 if impl(ghc < 7.10)
529 Hs-Source-Dirs: prelude
530 Other-Modules: Prelude
531 Build-Depends: base >= 4.2 && < 5,
532 syb >= 0.1 && < 0.8,
533 pandoc,
534 pandoc-types >= 1.17 && < 1.18,
535 bytestring >= 0.9 && < 0.11,
536 text >= 0.11 && < 1.3,
537 directory >= 1 && < 1.4,
538 filepath >= 1.1 && < 1.5,
539 hslua >= 0.4 && < 0.6,
540 process >= 1.2.3 && < 1.7,
541 skylighting >= 0.3.3 && < 0.4,
542 temporary >= 1.1 && < 1.3,
543 Diff >= 0.2 && < 0.4,
544 tasty >= 0.11 && < 0.12,
545 tasty-hunit >= 0.9 && < 0.10,
546 tasty-quickcheck >= 0.8 && < 0.9,
547 tasty-golden >= 2.3 && < 2.4,
548 QuickCheck >= 2.4 && < 2.11,
549 containers >= 0.1 && < 0.6,
550 executable-path >= 0.0 && < 0.1,
551 zip-archive >= 0.2.3.4 && < 0.4,
552 mtl >= 2.2 && < 2.3
553 Other-Modules: Tests.Old
554 Tests.Command
555 Tests.Helpers
556 Tests.Lua
557 Tests.Shared
558 Tests.Readers.LaTeX
559 Tests.Readers.HTML
560 Tests.Readers.Markdown
561 Tests.Readers.Org
562 Tests.Readers.RST
563 Tests.Readers.Docx
564 Tests.Readers.Odt
565 Tests.Readers.Txt2Tags
566 Tests.Readers.EPUB
567 Tests.Readers.Muse
568 Tests.Writers.Native
569 Tests.Writers.ConTeXt
570 Tests.Writers.Docbook
571 Tests.Writers.HTML
572 Tests.Writers.Markdown
573 Tests.Writers.Org
574 Tests.Writers.Plain
575 Tests.Writers.AsciiDoc
576 Tests.Writers.LaTeX
577 Tests.Writers.Docx
578 Tests.Writers.RST
579 Tests.Writers.TEI
580 Tests.Writers.Muse
581 Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind -threaded
582 Default-Language: Haskell98
584benchmark benchmark-pandoc
585 Type: exitcode-stdio-1.0
586 Main-Is: benchmark-pandoc.hs
587 Hs-Source-Dirs: benchmark
588 if impl(ghc < 7.10)
589 Hs-Source-Dirs: prelude
590 Other-Modules: Prelude
591 Build-Depends: pandoc,
592 time, bytestring, containers,
593 base >= 4.2 && < 5,
594 text >= 0.11 && < 1.3,
595 syb >= 0.1 && < 0.8,
596 criterion >= 1.0 && < 1.3
597 Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind
598 Default-Language: Haskell98