-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.yaml
75 lines (70 loc) · 1.94 KB
/
package.yaml
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
name: pandoc-filter-indent
version: 0.3.3.0
github: "mgajda/pandoc-filter-indent"
license: BSD3
author: "Michał J. Gajda"
maintainer: "mjgajda@migamake.com"
copyright: "AllRightsReserved"
category: Text
synopsis: "Pandoc filter formatting Haskell code fragments using GHC lexer."
description: |
Formats marked code fragments, and allows `pandoc` to safely process rest of your literate program:
.
> ```{.haskell}
.
.
Usage:
.
> stack install pandoc-filter-indent
> pandoc --filter pandoc-filter-indent -f input.md -o output.pdf
> pandoc --filter pandoc-filter-indent -f input.md -o output.html
.
Using `lhs2TeX` is somewhat inconvenient on large Markdown documents
processed with `pandoc`, since it assumes that it can freely redefine everything.
It is also pretty heavy on learning.
.
So instead we have a simple Pandoc filter that is only applied to `CodeFragment`s
and creates tabular code structures from indentation.
It uses GHC lexer to assure that latest features are always parsed correctly.
.
Please see the README on GitHub at <https://github.com/mgajda/pandoc-filter-indent#readme>
extra-source-files:
- README.md
- ChangeLog.md
dependencies:
- base >= 4.7 && < 5
- ghc-syntax-highlighter
- text
- blaze-html
- blaze-markup
- HaTeX
- pandoc-types
- optics-core
- optics-th
- skylighting
library:
source-dirs: src
executables:
pandoc-filter-indent:
main: Main.hs
source-dirs: app
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- pandoc-filter-indent
- optparse-applicative
- containers
tests:
pandoc-filter-indent-test:
main: Spec.hs
source-dirs: test
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- pandoc-filter-indent
- QuickCheck
- quickcheck-text