A simple textile parser, designed to be good enough to parse the formatting used in DailyJS articles.
npm install stextile
In a Node project:
var textile = require('stextile'); textile('h1. A header');
In the shell:
$ stextile file.textile # HTML printed to stdout
- Footnotes
- Acronyms
- Benchmarks
- Optimisation
- Attributes for inline elements
- Indentation
https://github.com/jgm/peg-markdown/blob/master/markdown_parser.leg
https://github.com/jgarber/redcloth/blob/master/ragel/redcloth_scan.rl
The MIT License.