git.iko.soy/typeable/pandoc
on 2.0.2 help sign in
typeable/pandoc/pandoc.cabal
615 lines 25 kB history raw
1name: pandoc
2version: 2.0.2
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/manfilter.lua
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/3533-rst-csv-tables.csv
139 test/command/3880.txt
140 test/command/abbrevs
141 test/command/SVG_logo-without-xml-declaration.svg
142 test/command/SVG_logo.svg
143 test/command/corrupt.svg
144 test/command/inkscape-cube.svg
145 test/command/sub-file-chapter-1.tex
146 test/command/sub-file-chapter-2.tex
147 test/command/3510-subdoc.org
148 test/command/3510-export.latex
149 test/command/3510-src.hs
150 test/command/3971b.tex
151 test/docbook-reader.docbook
152 test/docbook-xref.docbook
153 test/html-reader.html
154 test/opml-reader.opml
155 test/haddock-reader.haddock
156 test/insert
157 test/lalune.jpg
158 test/movie.jpg
159 test/media/rId25.jpg
160 test/media/rId26.jpg
161 test/media/rId27.jpg
162 test/latex-reader.latex
163 test/textile-reader.textile
164 test/markdown-reader-more.txt
165 test/markdown-citations.txt
166 test/textile-reader.textile
167 test/mediawiki-reader.wiki
168 test/vimwiki-reader.wiki
169 test/creole-reader.txt
170 test/creole-reader.native
171 test/rst-reader.rst
172 test/s5-basic.html
173 test/s5-fancy.html
174 test/s5-fragment.html
175 test/s5-inserts.html
176 test/tables.context
177 test/tables.docbook4
178 test/tables.docbook5
179 test/tables.jats
180 test/tables.dokuwiki
181 test/tables.zimwiki
182 test/tables.icml
183 test/tables.html4
184 test/tables.html5
185 test/tables.latex
186 test/tables.man
187 test/tables.ms
188 test/tables.plain
189 test/tables.markdown
190 test/tables.mediawiki
191 test/tables.tei
192 test/tables.textile
193 test/tables.opendocument
194 test/tables.org
195 test/tables.asciidoc
196 test/tables.haddock
197 test/tables.texinfo
198 test/tables.rst
199 test/tables.rtf
200 test/tables.txt
201 test/tables.fb2
202 test/tables.muse
203 test/testsuite.txt
204 test/writer.latex
205 test/writer.context
206 test/writer.docbook4
207 test/writer.docbook5
208 test/writer.jats
209 test/writer.html4
210 test/writer.html5
211 test/writer.man
212 test/writer.ms
213 test/writer.markdown
214 test/writer.plain
215 test/writer.mediawiki
216 test/writer.textile
217 test/writer.opendocument
218 test/writer.org
219 test/writer.asciidoc
220 test/writer.haddock
221 test/writer.rst
222 test/writer.icml
223 test/writer.rtf
224 test/writer.tei
225 test/writer.texinfo
226 test/writer.fb2
227 test/writer.opml
228 test/writer.dokuwiki
229 test/writer.zimwiki
230 test/writer.muse
231 test/writers-lang-and-dir.latex
232 test/writers-lang-and-dir.context
233 test/dokuwiki_inline_formatting.dokuwiki
234 test/lhs-test.markdown
235 test/lhs-test.markdown+lhs
236 test/lhs-test.rst
237 test/lhs-test.rst+lhs
238 test/lhs-test.latex
239 test/lhs-test.latex+lhs
240 test/lhs-test.html
241 test/lhs-test.html+lhs
242 test/lhs-test.fragment.html+lhs
243 test/pipe-tables.txt
244 test/dokuwiki_external_images.dokuwiki
245 test/dokuwiki_external_images.native
246 test/dokuwiki_multiblock_table.dokuwiki
247 test/dokuwiki_multiblock_table.native
248 test/fb2/*.markdown
249 test/fb2/*.fb2
250 test/fb2/images-embedded.html
251 test/fb2/images-embedded.fb2
252 test/fb2/test-small.png
253 test/fb2/test.jpg
254 test/docx/*.docx
255 test/docx/*.native
256 test/epub/*.epub
257 test/epub/*.native
258 test/txt2tags.t2t
259 test/twiki-reader.twiki
260 test/tikiwiki-reader.tikiwiki
261 test/odt/odt/*.odt
262 test/odt/markdown/*.md
263 test/odt/native/*.native
264 test/lua/*.lua
265source-repository head
266 type: git
267 location: git://github.com/jgm/pandoc.git
269flag static
270 Description: Use static linking for pandoc executable.
271 Default: False
273flag embed_data_files
274 Description: Embed data files in binary for relocatable executable.
275 Default: False
277flag trypandoc
278 Description: Build trypandoc cgi executable.
279 Default: False
281flag weigh-pandoc
282 Description: Build weigh-pandoc to measure memory usage.
283 Default: False
285flag network-uri
286 Description: Get Network.URI from the network-uri package
287 Default: True
289flag old-locale
290 Description: Use old-locale and time < 1.5
291 Default: False
293custom-setup
294 setup-depends: base, Cabal
296library
297 build-depends: base >= 4.7 && < 5,
298 syb >= 0.1 && < 0.8,
299 containers >= 0.4.2.1 && < 0.6,
300 unordered-containers >= 0.2 && < 0.3,
301 parsec >= 3.1 && < 3.2,
302 mtl >= 2.2 && < 2.3,
303 filepath >= 1.1 && < 1.5,
304 process >= 1.2.3 && < 1.7,
305 directory >= 1 && < 1.4,
306 bytestring >= 0.9 && < 0.11,
307 text >= 0.11 && < 1.3,
308 safe >= 0.3 && < 0.4,
309 zip-archive >= 0.2.3.4 && < 0.4,
310 HTTP >= 4000.0.5 && < 4000.4,
311 texmath >= 0.10 && < 0.11,
312 xml >= 1.3.12 && < 1.4,
313 split >= 0.2 && < 0.3,
314 random >= 1 && < 1.2,
315 pandoc-types >= 1.17.3 && < 1.18,
316 aeson >= 0.7 && < 1.3,
317 aeson-pretty >= 0.8 && < 0.9,
318 tagsoup >= 0.13.7 && < 0.15,
319 base64-bytestring >= 0.1 && < 1.1,
320 zlib >= 0.5 && < 0.7,
321 skylighting >= 0.4.3.2 && <0.5,
322 data-default >= 0.4 && < 0.8,
323 temporary >= 1.1 && < 1.3,
324 blaze-html >= 0.5 && < 0.10,
325 blaze-markup >= 0.5.1 && < 0.9,
326 yaml >= 0.8.8.2 && < 0.9,
327 scientific >= 0.2 && < 0.4,
328 vector >= 0.10 && < 0.13,
329 hslua >= 0.9 && < 0.10,
330 binary >= 0.5 && < 0.9,
331 SHA >= 1.6 && < 1.7,
332 haddock-library >= 1.1 && < 1.5,
333 deepseq >= 1.3 && < 1.5,
334 JuicyPixels >= 3.1.6.1 && < 3.3,
335 Glob >= 0.7 && < 0.10,
336 cmark-gfm >= 0.1.1 && < 0.2,
337 doctemplates >= 0.2.1 && < 0.3,
338 http-client >= 0.4.30 && < 0.6,
339 http-client-tls >= 0.2.4 && < 0.4,
340 http-types >= 0.8 && < 0.10,
341 case-insensitive >= 1.2 && < 1.3
342 if os(windows)
343 cpp-options: -D_WINDOWS
344 else
345 build-depends: unix >= 2.4 && < 2.8
346 if flag(old-locale)
347 build-depends: old-locale >= 1 && < 1.1,
348 time >= 1.2 && < 1.5
349 else
350 build-depends: time >= 1.5 && < 1.9
351 if flag(network-uri)
352 build-depends: network-uri >= 2.6 && < 2.7, network >= 2.6
353 else
354 build-depends: network >= 2 && < 2.6
355 if flag(embed_data_files)
356 cpp-options: -DEMBED_DATA_FILES
357 build-depends: file-embed >= 0.0 && < 0.1
358 other-modules: Text.Pandoc.Data
359 if os(windows)
360 cpp-options: -D_WINDOWS
361 ghc-options: -Wall -fno-warn-unused-do-bind
362 ghc-prof-options: -fprof-auto-exported
363 default-language: Haskell98
364 other-extensions: PatternGuards, OverloadedStrings,
365 ScopedTypeVariables, GeneralizedNewtypeDeriving,
366 RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
367 FlexibleInstances
368 hs-source-dirs: src
369 if impl(ghc < 7.10)
370 hs-source-dirs: prelude
371 other-modules: Prelude
373 exposed-modules: Text.Pandoc,
374 Text.Pandoc.App,
375 Text.Pandoc.Options,
376 Text.Pandoc.Extensions,
377 Text.Pandoc.Pretty,
378 Text.Pandoc.Shared,
379 Text.Pandoc.MediaBag,
380 Text.Pandoc.Error,
381 Text.Pandoc.Readers,
382 Text.Pandoc.Readers.HTML,
383 Text.Pandoc.Readers.LaTeX,
384 Text.Pandoc.Readers.LaTeX.Types,
385 Text.Pandoc.Readers.Markdown,
386 Text.Pandoc.Readers.CommonMark,
387 Text.Pandoc.Readers.Creole,
388 Text.Pandoc.Readers.MediaWiki,
389 Text.Pandoc.Readers.Vimwiki,
390 Text.Pandoc.Readers.RST,
391 Text.Pandoc.Readers.Org,
392 Text.Pandoc.Readers.DocBook,
393 Text.Pandoc.Readers.OPML,
394 Text.Pandoc.Readers.Textile,
395 Text.Pandoc.Readers.Native,
396 Text.Pandoc.Readers.Haddock,
397 Text.Pandoc.Readers.TWiki,
398 Text.Pandoc.Readers.TikiWiki,
399 Text.Pandoc.Readers.Txt2Tags,
400 Text.Pandoc.Readers.Docx,
401 Text.Pandoc.Readers.Odt,
402 Text.Pandoc.Readers.EPUB,
403 Text.Pandoc.Readers.Muse,
404 Text.Pandoc.Writers,
405 Text.Pandoc.Writers.Native,
406 Text.Pandoc.Writers.Docbook,
407 Text.Pandoc.Writers.JATS,
408 Text.Pandoc.Writers.OPML,
409 Text.Pandoc.Writers.HTML,
410 Text.Pandoc.Writers.ICML,
411 Text.Pandoc.Writers.LaTeX,
412 Text.Pandoc.Writers.ConTeXt,
413 Text.Pandoc.Writers.OpenDocument,
414 Text.Pandoc.Writers.Texinfo,
415 Text.Pandoc.Writers.Man,
416 Text.Pandoc.Writers.Ms,
417 Text.Pandoc.Writers.Markdown,
418 Text.Pandoc.Writers.CommonMark,
419 Text.Pandoc.Writers.Haddock,
420 Text.Pandoc.Writers.RST,
421 Text.Pandoc.Writers.Org,
422 Text.Pandoc.Writers.AsciiDoc,
423 Text.Pandoc.Writers.Custom,
424 Text.Pandoc.Writers.Textile,
425 Text.Pandoc.Writers.MediaWiki,
426 Text.Pandoc.Writers.DokuWiki,
427 Text.Pandoc.Writers.ZimWiki,
428 Text.Pandoc.Writers.RTF,
429 Text.Pandoc.Writers.ODT,
430 Text.Pandoc.Writers.Docx,
431 Text.Pandoc.Writers.EPUB,
432 Text.Pandoc.Writers.FB2,
433 Text.Pandoc.Writers.TEI,
434 Text.Pandoc.Writers.Muse,
435 Text.Pandoc.Writers.Math,
436 Text.Pandoc.Writers.Shared,
437 Text.Pandoc.Lua,
438 Text.Pandoc.PDF,
439 Text.Pandoc.UTF8,
440 Text.Pandoc.Templates,
441 Text.Pandoc.XML,
442 Text.Pandoc.SelfContained,
443 Text.Pandoc.Highlighting,
444 Text.Pandoc.Logging,
445 Text.Pandoc.Process,
446 Text.Pandoc.MIME,
447 Text.Pandoc.Parsing,
448 Text.Pandoc.Asciify,
449 Text.Pandoc.Emoji,
450 Text.Pandoc.ImageSize,
451 Text.Pandoc.BCP47,
452 Text.Pandoc.Class
453 other-modules: Text.Pandoc.Readers.Docx.Lists,
454 Text.Pandoc.Readers.Docx.Combine,
455 Text.Pandoc.Readers.Docx.Parse,
456 Text.Pandoc.Readers.Docx.Util,
457 Text.Pandoc.Readers.Docx.StyleMap,
458 Text.Pandoc.Readers.Odt.Base,
459 Text.Pandoc.Readers.Odt.Namespaces,
460 Text.Pandoc.Readers.Odt.StyleReader,
461 Text.Pandoc.Readers.Odt.ContentReader,
462 Text.Pandoc.Readers.Odt.Generic.Fallible,
463 Text.Pandoc.Readers.Odt.Generic.SetMap,
464 Text.Pandoc.Readers.Odt.Generic.Utils,
465 Text.Pandoc.Readers.Odt.Generic.Namespaces,
466 Text.Pandoc.Readers.Odt.Generic.XMLConverter,
467 Text.Pandoc.Readers.Odt.Arrows.State,
468 Text.Pandoc.Readers.Odt.Arrows.Utils,
469 Text.Pandoc.Readers.Org.BlockStarts,
470 Text.Pandoc.Readers.Org.Blocks,
471 Text.Pandoc.Readers.Org.DocumentTree,
472 Text.Pandoc.Readers.Org.ExportSettings,
473 Text.Pandoc.Readers.Org.Inlines,
474 Text.Pandoc.Readers.Org.Meta,
475 Text.Pandoc.Readers.Org.ParserState,
476 Text.Pandoc.Readers.Org.Parsing,
477 Text.Pandoc.Readers.Org.Shared,
478 Text.Pandoc.Lua.PandocModule,
479 Text.Pandoc.Lua.Filter,
480 Text.Pandoc.Lua.StackInstances,
481 Text.Pandoc.Lua.Util,
482 Text.Pandoc.CSS,
483 Text.Pandoc.CSV,
484 Text.Pandoc.UUID,
485 Text.Pandoc.Translations,
486 Text.Pandoc.Slides,
487 Text.Pandoc.Compat.Time,
488 Paths_pandoc
490 buildable: True
492executable pandoc
493 build-depends: pandoc, base >= 4.7 && < 5
494 ghc-options: -rtsopts -with-rtsopts=-K16m -Wall -fno-warn-unused-do-bind
495 ghc-prof-options: -fprof-auto-exported -rtsopts -with-rtsopts=-K16m
496 if flag(static)
497 ld-options: -static
498 default-language: Haskell98
499 other-extensions: PatternGuards, OverloadedStrings,
500 ScopedTypeVariables, GeneralizedNewtypeDeriving,
501 RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
502 FlexibleInstances
503 hs-source-dirs: .
504 if impl(ghc < 7.10)
505 hs-source-dirs: prelude
506 other-modules: Prelude
507 main-is: pandoc.hs
508 buildable: True
509 other-modules: Paths_pandoc
511executable trypandoc
512 main-is: trypandoc.hs
513 hs-source-dirs: trypandoc
514 if impl(ghc < 7.10)
515 hs-source-dirs: prelude
516 other-modules: Prelude
517 default-language: Haskell2010
518 if flag(trypandoc)
519 build-depends: base, aeson, pandoc,
520 text, wai-extra, wai >= 0.3, http-types
521 buildable: True
522 else
523 buildable: False
525executable weigh-pandoc
526 main-is: weigh-pandoc.hs
527 hs-source-dirs: benchmark
528 if impl(ghc < 7.10)
529 hs-source-dirs: prelude
530 other-modules: Prelude
531 if flag(weigh-pandoc)
532 build-depends: pandoc,
533 base >= 4.2 && < 5,
534 text,
535 weigh >= 0.0 && < 0.1,
536 mtl >= 2.2 && < 2.3
537 buildable: True
538 else
539 buildable: False
540 ghc-options: -rtsopts -Wall -fno-warn-unused-do-bind
541 default-language: Haskell98
543test-suite test-pandoc
544 type: exitcode-stdio-1.0
545 main-is: test-pandoc.hs
546 hs-source-dirs: test
547 if impl(ghc < 7.10)
548 hs-source-dirs: prelude
549 other-modules: Prelude
550 build-depends: base >= 4.2 && < 5,
551 pandoc,
552 pandoc-types >= 1.17.3 && < 1.18,
553 bytestring >= 0.9 && < 0.11,
554 text >= 0.11 && < 1.3,
555 directory >= 1 && < 1.4,
556 filepath >= 1.1 && < 1.5,
557 hslua >= 0.9 && < 0.10,
558 process >= 1.2.3 && < 1.7,
559 temporary >= 1.1 && < 1.3,
560 Diff >= 0.2 && < 0.4,
561 tasty >= 0.11 && < 0.13,
562 tasty-hunit >= 0.9 && < 0.10,
563 tasty-quickcheck >= 0.8 && < 0.10,
564 tasty-golden >= 2.3 && < 2.4,
565 QuickCheck >= 2.4 && < 2.11,
566 containers >= 0.4.2.1 && < 0.6,
567 executable-path >= 0.0 && < 0.1,
568 zip-archive >= 0.2.3.4 && < 0.4
569 other-modules: Tests.Old
570 Tests.Command
571 Tests.Helpers
572 Tests.Lua
573 Tests.Shared
574 Tests.Readers.LaTeX
575 Tests.Readers.HTML
576 Tests.Readers.Markdown
577 Tests.Readers.Org
578 Tests.Readers.RST
579 Tests.Readers.Docx
580 Tests.Readers.Odt
581 Tests.Readers.Txt2Tags
582 Tests.Readers.EPUB
583 Tests.Readers.Muse
584 Tests.Readers.Creole
585 Tests.Writers.Native
586 Tests.Writers.ConTeXt
587 Tests.Writers.Docbook
588 Tests.Writers.HTML
589 Tests.Writers.Markdown
590 Tests.Writers.Org
591 Tests.Writers.Plain
592 Tests.Writers.AsciiDoc
593 Tests.Writers.LaTeX
594 Tests.Writers.Docx
595 Tests.Writers.RST
596 Tests.Writers.TEI
597 Tests.Writers.Muse
598 Tests.Writers.FB2
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