A simple textile parser
JavaScript
Latest commit f31c47f Jul 26, 2012 Alex Young Merge pull request #4 from JoJoS003/master
Inline supports added
Permalink
Failed to load latest commit information.
bin
lib added support for "sup", "sub", "span", "code" and "cite" elements Jul 23, 2012
test added support for "ins" and "del" elements May 31, 2012
.gitignore Added benchmarks, grouped tests Aug 23, 2011
LICENSE first commit Jul 10, 2011
Makefile
README.textile
package.json Added benchmarks, grouped tests Aug 23, 2011

README.textile

stextile

A simple textile parser, designed to be good enough to parse the formatting used in DailyJS articles.

Installation

npm install stextile

Usage

In a Node project:

var textile = require('stextile');

textile('h1. A header');

In the shell:

$ stextile file.textile

# HTML printed to stdout

TO-DO

  • Footnotes
  • Acronyms
  • Benchmarks
  • Optimisation
  • Attributes for inline elements
  • Indentation

Notes

https://github.com/jgm/peg-markdown/blob/master/markdown_parser.leg
https://github.com/jgarber/redcloth/blob/master/ragel/redcloth_scan.rl

License

The MIT License.