perro tuerto 270a5ceb22 | ||
---|---|---|
dist | ||
man | ||
opt | ||
scripts | ||
src | ||
tests | ||
LICENSE.txt | ||
README.md |
README.md
Literate Pandoc
Literate Pandoc is a Pandoc filter written in Lua for literate and natural programming (LiNP or just Linp), i.e.: "Programming [...] as the process of creating works of literature".
Requirements
Install
- Go to Releases.
- Download the latest version of
linp.lua
. - Done!
Usage
With linp.lua
downloaded and Pandoc installed, do:
pandoc -L PATH/TO/linp.lua -t FORMAT DOC
For example, if DOC
is source.md
and the output FORMAT
is HTML, do:
pandoc -L PATH/TO/linp.lua -t html source.md
Manual
Learn how to do LiNP here.
Develop
Clone this repo:
git clone https://git.cuates.net/perro/literate-pandoc.git
Enter the repo:
cd literate-pandoc
Inside, do the tests:
sh scripts/test.sh
For other kind of tests, do:
sh scripts/test.sh -h
Contribute!
Acknowledgments
This wouldn't be possible without these projects and their collaborators:
- Pandoc: universal document converter and parser; handles the requirements for LiNP.
- Lua: programming language; enables LiNP.
- Fennel: Lisp dialect with full Lua compatibility; allows to go from LiNP to Lisp or Lua.
License
Literate Pandoc is under GPLv3.
Happy hacking :)