Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A simple textile parser
JavaScript
branch: master

Merge pull request #4 from JoJoS003/master

Inline supports added
latest commit f31c47fa59
Alex Young authored
Failed to load latest commit information.
bin first commit
lib added support for "sup", "sub", "span", "code" and "cite" elements
test
.gitignore
LICENSE
Makefile Added benchmarks, grouped tests
README.textile added support for "sup", "sub", "span", "code" and "cite" elements
package.json Added benchmarks, grouped tests

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.

Something went wrong with that request. Please try again.