/
TODO
41 lines (31 loc) · 796 Bytes
/
TODO
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
_ mathML:
_ arrays
_ bibliography w/ citeproc
_ whitespace parser?
_ outer shell - preamble stuff, css, encoding, etc.
_ \index also in HTML!
_ add accented character commands to standard parsers
_ jail for IO?
_ figure out how to do verbatims
_ syntactic macros (why not? in many cases going to Haskell is overkill)
_ hexto?
hexto
-----
my.hex:
------------
\title{This is my document!}
Here's my \emph{text}.
------------
my.hs:
------------
import Text.HeX
main = defaultMain parsers
------------
hexto html /dir/my.hex:
- looks for /dir/my.hex
- if found, looks for /dir/my.hs
- else error
- if found, runs it with: 'runghc $OPTS /dir/my.hs html',
taking input from /dir/my.hex, output to --output file
if specified or stdout
- else create it using default, then run as above