Skip to content

alexyoung/stextile

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

A simple textile parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published