-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpandoc-filter-indent.cabal
124 lines (118 loc) · 3.35 KB
/
pandoc-filter-indent.cabal
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
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.34.4.
--
-- see: https://github.com/sol/hpack
name: pandoc-filter-indent
version: 0.3.3.0
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>
category: Text
homepage: https://github.com/mgajda/pandoc-filter-indent#readme
bug-reports: https://github.com/mgajda/pandoc-filter-indent/issues
author: Michał J. Gajda
maintainer: [email protected]
copyright: AllRightsReserved
license: BSD3
license-file: LICENSE
build-type: Simple
extra-source-files:
README.md
ChangeLog.md
source-repository head
type: git
location: https://github.com/mgajda/pandoc-filter-indent
library
exposed-modules:
Alignment
Filter
FindColumns
Render.ColSpan
Render.Common
Render.Debug
Render.HTML
Render.Latex
Token
Token.Haskell
Token.Skylighting
Tuples
Util
other-modules:
Paths_pandoc_filter_indent
hs-source-dirs:
src
build-depends:
HaTeX
, base >=4.7 && <5
, blaze-html
, blaze-markup
, ghc-syntax-highlighter
, optics-core
, optics-th
, pandoc-types
, skylighting
, text
default-language: Haskell2010
executable pandoc-filter-indent
main-is: Main.hs
other-modules:
Paths_pandoc_filter_indent
hs-source-dirs:
app
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
HaTeX
, base >=4.7 && <5
, blaze-html
, blaze-markup
, containers
, ghc-syntax-highlighter
, optics-core
, optics-th
, optparse-applicative
, pandoc-filter-indent
, pandoc-types
, skylighting
, text
default-language: Haskell2010
test-suite pandoc-filter-indent-test
type: exitcode-stdio-1.0
main-is: Spec.hs
other-modules:
Paths_pandoc_filter_indent
hs-source-dirs:
test
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
HaTeX
, QuickCheck
, base >=4.7 && <5
, blaze-html
, blaze-markup
, ghc-syntax-highlighter
, optics-core
, optics-th
, pandoc-filter-indent
, pandoc-types
, quickcheck-text
, skylighting
, text
default-language: Haskell2010