A parser written in Haskell that converts ReST to LaTeX using the Parsec Library
Prerequisites:
* Haskell 2013.2.0.0+
* Parsec 3+
Go to the directory that includes all the files
cd ..
Start the Glasgow Haskell Compiler
ghci
Load the parser
:l a.hs
Read b.rest and write c.tex
main
Done! The LaTeX source can be found in c.tex. To make a PDF simply type
pdflatex c.tex
The parser
a.hs
The ReST source file
b.rest
The LaTeX destination file
c.tex
✔ Bold
This is **bold** Text.
✔ Italics
How *about* it in italics.
✔ Chapter
A Parser
========
✔ Section
This Will Be the Subtitle
-------------------------
✔ Bulleted Lists
Things that are awesome in Haskell:
- Pattern Matching
- List Comprehensions
- Currying
✘ Enumerated Lists
Even better:
1. Higher Order Functions
2. Type Constructors
3. IO
✘ Hyperlink
We refer to github_ as the host of the source code.
.. _github: http://github.com