aboutsummaryrefslogtreecommitdiff
path: root/pandoc.cabal
blob: 51f60f160ba221e58482a27bbd3bac0e588b904f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
Name:            pandoc
Version:         1.12
Cabal-Version:   >= 1.10
Build-Type:      Custom
License:         GPL
License-File:    COPYING
Copyright:       (c) 2006-2013 John MacFarlane
Author:          John MacFarlane <jgm@berkeley.edu>
Maintainer:      John MacFarlane <jgm@berkeley.edu>
Bug-Reports:     https://github.com/jgm/pandoc/issues
Stability:       alpha
Homepage:        http://johnmacfarlane.net/pandoc
Category:        Text
Tested-With:     GHC == 7.4.2, GHC == 7.6.1
Synopsis:        Conversion between markup formats
Description:     Pandoc is a Haskell library for converting from one markup
                 format to another, and a command-line tool that uses
                 this library. It can read markdown and (subsets of) HTML,
                 reStructuredText, LaTeX, DocBook, MediaWiki markup, Haddock
                 markup, OPML, and Textile, and it can write markdown,
                 reStructuredText, HTML, LaTeX, ConTeXt, Docbook, OPML,
                 OpenDocument, ODT, Word docx, RTF, MediaWiki, Textile,
                 groff man pages, plain text, Emacs Org-Mode, AsciiDoc,
                 EPUB (v2 and v3), FictionBook2, and several kinds of
                 HTML/javascript slide shows (S5, Slidy, Slideous, DZSlides,
                 reveal.js).
                 .
                 Pandoc extends standard markdown syntax with footnotes,
                 embedded LaTeX, definition lists, tables, and other
                 features. A compatibility mode is provided for those
                 who need a drop-in replacement for Markdown.pl.
                 .
                 In contrast to existing tools for converting markdown
                 to HTML, which use regex substitutions, pandoc has
                 a modular design: it consists of a set of readers,
                 which parse text in a given format and produce a native
                 representation of the document, and a set of writers,
                 which convert this native representation into a target
                 format. Thus, adding an input or output format requires
                 only adding a reader or writer.
Data-Files:
                 -- templates
                 data/templates/default.html,
                 data/templates/default.html5,
                 data/templates/default.docbook,
                 data/templates/default.beamer,
                 data/templates/default.opendocument,
                 data/templates/default.opml,
		 data/templates/default.latex,
                 data/templates/default.context,
		 data/templates/default.texinfo,
                 data/templates/default.man,
		 data/templates/default.markdown,
                 data/templates/default.rst,
                 data/templates/default.plain,
                 data/templates/default.mediawiki,
                 data/templates/default.rtf,
                 data/templates/default.s5,
                 data/templates/default.slidy,
                 data/templates/default.slideous,
                 data/templates/default.revealjs,
                 data/templates/default.dzslides,
		 data/templates/default.asciidoc,
                 data/templates/default.textile,
                 data/templates/default.org,
                 data/templates/default.epub,
                 data/templates/default.epub3,
                 -- data for ODT writer
                 data/reference.odt,
                 -- data for docx writer
                 data/reference.docx,
                 -- stylesheet for EPUB writer
                 data/epub.css,
                 -- data for LaTeXMathML writer
                 data/LaTeXMathML.js,
                 data/MathMLinHTML.js,
                 -- data for S5 writer
                 data/s5/default/slides.js,
                 data/s5/default/s5-core.css,
                 data/s5/default/framing.css,
                 data/s5/default/pretty.css,
                 data/s5/default/opera.css,
                 data/s5/default/outline.css,
                 data/s5/default/print.css,
                 data/s5/default/slides.css,
                 data/s5/default/iepngfix.htc,
                 data/s5/default/blank.gif,
                 data/s5/default/bodybg.gif,
                 -- data for slidy writer
                 data/slidy/styles/slidy.css,
                 data/slidy/scripts/slidy.js,
                 data/slidy/graphics/fold.gif,
                 data/slidy/graphics/unfold.gif,
                 data/slidy/graphics/nofold-dim.gif,
                 data/slidy/graphics/unfold-dim.gif,
                 data/slidy/graphics/fold-dim.gif,
                 -- data for slideous writer
                 data/slideous/slideous.css,
                 data/slideous/slideous.js,
                 -- data for dzslides writer
                 data/dzslides/template.html,
                 -- sample lua custom writer
                 data/sample.lua
                 -- documentation
                 README, INSTALL, COPYRIGHT, BUGS, CONTRIBUTING.md, changelog
Extra-Source-Files:
                 -- code to create pandoc.1 man page
                 man/man1/pandoc.1.template,
                 man/man5/pandoc_markdown.5.template,
                 -- generated man pages (produced post-build)
                 man/man1/pandoc.1,
                 man/man5/pandoc_markdown.5,
                 -- tests
                 tests/bodybg.gif,
                 tests/docbook-reader.docbook
                 tests/docbook-reader.native
                 tests/html-reader.html,
                 tests/html-reader.native,
                 tests/opml-reader.html,
                 tests/opml-reader.native,
                 tests/haddock-reader.html,
                 tests/haddock-reader.native,
                 tests/insert,
                 tests/lalune.jpg,
                 tests/movie.jpg,
                 tests/latex-reader.latex,
                 tests/latex-reader.native,
                 tests/textile-reader.textile,
                 tests/textile-reader.native,
                 tests/markdown-reader-more.txt,
                 tests/markdown-reader-more.native,
                 tests/markdown-citations.txt,
                 tests/markdown-citations.native,
                 tests/textile-reader.textile,
                 tests/mediawiki-reader.wiki,
                 tests/mediawiki-reader.native,
                 tests/rst-reader.native,
                 tests/rst-reader.rst,
                 tests/s5.basic.html,
                 tests/s5.fancy.html,
                 tests/s5.fragment.html,
                 tests/s5.inserts.html,
                 tests/s5.native,
                 tests/tables.context,
                 tests/tables.docbook,
                 tests/tables.html,
                 tests/tables.latex,
                 tests/tables.man,
                 tests/tables.plain,
                 tests/tables.markdown,
                 tests/tables.mediawiki,
                 tests/tables.textile,
                 tests/tables.native,
                 tests/tables.opendocument,
                 tests/tables.org,
                 tests/tables.asciidoc,
                 tests/tables.texinfo,
                 tests/tables.rst,
                 tests/tables.rtf,
                 tests/tables.txt,
                 tests/tables-rstsubset.native,
                 tests/tables.fb2,
                 tests/testsuite.native,
                 tests/testsuite.txt,
                 tests/writer.latex,
                 tests/writer.context,
                 tests/writer.docbook,
                 tests/writer.html,
                 tests/writer.man,
                 tests/writer.markdown,
                 tests/writer.plain,
                 tests/writer.mediawiki,
                 tests/writer.textile,
                 tests/writer.native,
                 tests/writer.opendocument,
                 tests/writer.org,
                 tests/writer.asciidoc,
                 tests/writer.rst,
                 tests/writer.rtf,
                 tests/writer.texinfo,
                 tests/writer.fb2,
                 tests/writer.opml,
                 tests/lhs-test.native,
                 tests/lhs-test-markdown.native,
                 tests/lhs-test.markdown,
                 tests/lhs-test.markdown+lhs,
                 tests/lhs-test.rst,
                 tests/lhs-test.rst+lhs,
                 tests/lhs-test.latex,
                 tests/lhs-test.latex+lhs,
                 tests/lhs-test.html,
                 tests/lhs-test.html+lhs,
                 tests/lhs-test.fragment.html+lhs,
                 tests/pipe-tables.txt,
                 tests/pipe-tables.native,
                 tests/fb2.basic.markdown,
                 tests/fb2.basic.fb2,
                 tests/fb2.titles.markdown,
                 tests/fb2.titles.fb2,
                 tests/fb2.images.markdown,
                 tests/fb2.images.fb2,
                 tests/fb2.images-embedded.html,
                 tests/fb2.images-embedded.fb2,
                 tests/fb2.math.markdown,
                 tests/fb2.math.fb2,
                 tests/fb2.test-small.png,
                 tests/fb2.test.jpg
Extra-Tmp-Files: man/man1/pandoc.1,
                 man/man5/pandoc_markdown.5

Source-repository head
  type:          git
  location:      git://github.com/jgm/pandoc.git

Flag embed_data_files
  Description:   Embed data files in binary for relocatable executable.
  Default:       False

Flag http-conduit
  Description:   Enable downloading of resources over https.
  Default:       True

Library
  Build-Depends: base >= 4.2 && <5,
                 syb >= 0.1 && < 0.5,
                 containers >= 0.1 && < 0.6,
                 unordered-containers >= 0.2 && < 0.3,
                 array >= 0.3 && < 0.5,
                 parsec >= 3.1 && < 3.2,
                 mtl >= 1.1 && < 2.2,
                 network >= 2 && < 2.5,
                 filepath >= 1.1 && < 1.4,
                 process >= 1 && < 1.2,
                 directory >= 1 && < 1.3,
                 bytestring >= 0.9 && < 0.11,
                 text >= 0.11 && < 0.12,
                 zip-archive >= 0.1.3.3 && < 0.2,
                 old-locale >= 1 && < 1.1,
                 time >= 1.2 && < 1.5,
                 HTTP >= 4000.0.5 && < 4000.3,
                 texmath >= 0.6.4 && < 0.7,
                 xml >= 1.3.12 && < 1.4,
                 random >= 1 && < 1.1,
                 extensible-exceptions >= 0.1 && < 0.2,
                 pandoc-types >= 1.12 && < 1.13,
                 aeson >= 0.6 && < 0.7,
                 tagsoup >= 0.12.5 && < 0.14,
                 base64-bytestring >= 0.1 && < 1.1,
                 zlib >= 0.5 && < 0.6,
                 highlighting-kate >= 0.5.5 && < 0.6,
                 data-default >= 0.4 && < 0.6,
                 temporary >= 1.1 && < 1.2,
                 blaze-html >= 0.5 && < 0.7,
                 blaze-markup >= 0.5.1 && < 0.6,
                 attoparsec >= 0.10 && < 0.11,
                 stringable >= 0.1 && < 0.2,
                 yaml >= 0.8.3 && < 0.9,
                 vector >= 0.10 && < 0.11,
                 hslua >= 0.3 && < 0.4
  if flag(http-conduit)
     Build-Depends: http-conduit >= 1.9 && < 1.10,
                    http-types >= 0.8 && < 0.9
     cpp-options:   -DHTTP_CONDUIT
  if flag(embed_data_files)
     cpp-options:   -DEMBED_DATA_FILES
     -- build-tools:   hsb2hs
     other-modules: Text.Pandoc.Data
  Ghc-Options:   -rtsopts -Wall -fno-warn-unused-do-bind
  Ghc-Prof-Options: -auto-all -caf-all -rtsopts
  Default-Language: Haskell98
  Other-Extensions:   PatternGuards, OverloadedStrings,
                      ScopedTypeVariables, GeneralizedNewtypeDeriving,
                      RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
                      FlexibleInstances
  Hs-Source-Dirs:  src

  Exposed-Modules: Text.Pandoc,
                   Text.Pandoc.Options,
                   Text.Pandoc.Pretty,
                   Text.Pandoc.Shared,
                   Text.Pandoc.Readers.HTML,
                   Text.Pandoc.Readers.LaTeX,
                   Text.Pandoc.Readers.Markdown,
                   Text.Pandoc.Readers.MediaWiki,
                   Text.Pandoc.Readers.RST,
                   Text.Pandoc.Readers.DocBook,
                   Text.Pandoc.Readers.OPML,
                   Text.Pandoc.Readers.TeXMath,
                   Text.Pandoc.Readers.Textile,
                   Text.Pandoc.Readers.Native,
                   Text.Pandoc.Readers.Haddock,
                   Text.Pandoc.Writers.Native,
                   Text.Pandoc.Writers.Docbook,
                   Text.Pandoc.Writers.OPML,
                   Text.Pandoc.Writers.HTML,
                   Text.Pandoc.Writers.LaTeX,
                   Text.Pandoc.Writers.ConTeXt,
                   Text.Pandoc.Writers.OpenDocument,
                   Text.Pandoc.Writers.Texinfo,
                   Text.Pandoc.Writers.Man,
                   Text.Pandoc.Writers.Markdown,
                   Text.Pandoc.Writers.RST,
                   Text.Pandoc.Writers.Org,
                   Text.Pandoc.Writers.AsciiDoc,
                   Text.Pandoc.Writers.Custom,
                   Text.Pandoc.Writers.Textile,
                   Text.Pandoc.Writers.MediaWiki,
                   Text.Pandoc.Writers.RTF,
                   Text.Pandoc.Writers.ODT,
                   Text.Pandoc.Writers.Docx,
                   Text.Pandoc.Writers.EPUB,
                   Text.Pandoc.Writers.FB2,
                   Text.Pandoc.PDF,
                   Text.Pandoc.UTF8,
                   Text.Pandoc.Templates,
                   Text.Pandoc.XML,
                   Text.Pandoc.SelfContained,
                   Text.Pandoc.Process
  Other-Modules:   Text.Pandoc.Readers.Haddock.Lex,
                   Text.Pandoc.Readers.Haddock.Parse,
                   Text.Pandoc.Writers.Shared,
                   Text.Pandoc.Asciify,
                   Text.Pandoc.MIME,
                   Text.Pandoc.Parsing,
                   Text.Pandoc.UUID,
                   Text.Pandoc.ImageSize,
                   Text.Pandoc.Slides,
                   Text.Pandoc.Highlighting,
                   Text.Pandoc.Compat.Monoid,
                   Text.Pandoc.Compat.TagSoupEntity,
                   Paths_pandoc

  Buildable:       True

Executable pandoc
  Build-Depends: pandoc,
                 base >= 4.2 && <5,
                 directory >= 1 && < 1.3,
                 filepath >= 1.1 && < 1.4,
                 network >= 2 && < 2.5,
                 text >= 0.11 && < 0.12,
                 bytestring >= 0.9 && < 0.11,
                 extensible-exceptions >= 0.1 && < 0.2,
                 highlighting-kate >= 0.5.5 && < 0.6,
                 aeson >= 0.6 && < 0.7,
                 HTTP >= 4000.0.5 && < 4000.3
  Ghc-Options:   -rtsopts -with-rtsopts=-K16m -Wall -fno-warn-unused-do-bind
  Ghc-Prof-Options: -auto-all -caf-all -rtsopts -with-rtsopts=-K16m
  if os(windows)
    Cpp-options:      -D_WINDOWS
  Default-Language: Haskell98
  Other-Extensions: PatternGuards, OverloadedStrings,
                    ScopedTypeVariables, GeneralizedNewtypeDeriving,
                    RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
                    FlexibleInstances
  Hs-Source-Dirs:  .
  Main-Is:         pandoc.hs
  Buildable:       True

-- NOTE:  A trick in Setup.hs makes sure this won't be installed:
Executable make-pandoc-man-pages
  Main-Is:       make-pandoc-man-pages.hs
  Hs-Source-Dirs: man
  Build-Depends: pandoc,
                 base >= 4.2 && < 5,
                 directory >= 1 && < 1.3,
                 filepath >= 1.1 && < 1.4,
                 old-time >= 1.0 && < 1.2,
                 time >= 1.2 && < 1.5
  Default-Language: Haskell98

Test-Suite test-pandoc
  Type:           exitcode-stdio-1.0
  Main-Is:        test-pandoc.hs
  Hs-Source-Dirs: tests
  Build-Depends:  base >= 4.2 && < 5,
                  syb >= 0.1 && < 0.5,
                  pandoc,
                  pandoc-types >= 1.12 && < 1.13,
                  bytestring >= 0.9 && < 0.11,
                  text >= 0.11 && < 0.12,
                  directory >= 1 && < 1.3,
                  filepath >= 1.1 && < 1.4,
                  process >= 1 && < 1.2,
                  highlighting-kate >= 0.5.5 && < 0.6,
                  Diff >= 0.2 && < 0.4,
                  test-framework >= 0.3 && < 0.9,
                  test-framework-hunit >= 0.2 && < 0.4,
                  test-framework-quickcheck2 >= 0.2.9 && < 0.4,
                  QuickCheck >= 2.4 && < 2.7,
                  HUnit >= 1.2 && < 1.3,
                  containers >= 0.1 && < 0.6,
                  ansi-terminal >= 0.5 && < 0.7
  Other-Modules:  Tests.Old
                  Tests.Helpers
                  Tests.Arbitrary
                  Tests.Shared
                  Tests.Walk
                  Tests.Readers.LaTeX
                  Tests.Readers.Markdown
                  Tests.Readers.RST
                  Tests.Writers.Native
                  Tests.Writers.ConTeXt
                  Tests.Writers.HTML
                  Tests.Writers.Markdown
                  Tests.Writers.LaTeX
  Ghc-Options:  -rtsopts -Wall -fno-warn-unused-do-bind
  Default-Language: Haskell98

benchmark benchmark-pandoc
  Type:            exitcode-stdio-1.0
  Main-Is:         benchmark-pandoc.hs
  Hs-Source-Dirs:  benchmark
  Build-Depends:   pandoc,
                   base >= 4.2 && < 5,
                   syb >= 0.1 && < 0.5,
                   criterion >= 0.5 && < 0.9
  Ghc-Options:   -rtsopts -Wall -fno-warn-unused-do-bind
  Default-Language: Haskell98