Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

A parser written in Haskell that converts ReST to LaTeX using the Parsec Library

Notifications You must be signed in to change notification settings

tobua/ReStructuredText-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReStructuredText-Parser

A parser written in Haskell that converts ReST to LaTeX using the Parsec Library

Prerequisites:

* Haskell 2013.2.0.0+
* Parsec 3+

Run a conversion:

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

Important files

The parser

a.hs

The ReST source file

b.rest

The LaTeX destination file

c.tex

Currently supported markup

✔ 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

About

A parser written in Haskell that converts ReST to LaTeX using the Parsec Library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published