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