= hat: haskell asciidoc transformer
Creates html and LaTeX files from (a small subset of) asciidoc.
The idea for for `Process.lhs` came from:
http://daniel-levin.github.io/2015/01/19/primitive-state-machine-in-haskell.html
== Supported asciidoc
- Three levels of headings using `=`, `==`, `===` (title, level 1, level 2).
- Bold
- Emphasis
- Inline code
- Code blocks
- Block quotes
- Naked URLs
- Links
- Single level lists
Fancy quotes (single and double) automatically generated in both LaTeX
and html output.
== Requirements
All the haskell libraries listed in import statements, namely:
------------
Codec.Binary.Base64.String
Data.List
Data.List.Split
Data.String.Here
Data.String.Utils
System.Environment
------------
The LaTeX preamble includes `\usepackage{fontspec}` and
`\setmainfont{STIX Two Text}`.
So XeLaTeX or LuaLaTeX will be needed to compile to PDF.
These above lines could be removed and `\usepackage{times}` or similar
used instead.
== TODO
Nested lists (maybe), ... let's see...
Links still broken in corner cases