A fully featured Textile parser in JavaScript
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 53 commits behind borgar:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
test
LICENSE
Makefile
README.textile
index.js
package.json

README.textile

textile.js

Attempt at an implementation of fully featured Textile parser in JavaScript that runs reasonably fast and mostly avoids outputting broken HTML.

Give it a go in a live textile web editor.

Install

$ npm install textile-js

Options

The basic interface mimics marked. So if you use that in your project then you can support Textile as well with minimal effort.

Currently, no option is supported. :-)

Usage

console.log( textile( "I am using __textile__." ) );

You can also get to the syntax tree, which uses JsonML.

var jsonml = textile.parse( text );
console.log( jsonml );

CLI

$ textile -o hello.html
hello world
^D
$ cat hello.html
<p>hello world</p>

License

Copyright © 2012, Borgar Þorsteinsson (MIT License).

See LICENSE.