Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A simple textile parser

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.textile
Octocat-spinner-32 package.json
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.