Want to see pretty graphs? Log in now!
npm install textile-js
|3|| downloads in the last day|
|51|| downloads in the last week|
|267|| downloads in the last month|
Give it a go in "a live textile web editor":http://borgar.github.com/textile-js/.
bc. $ npm install textile-js
The basic interface mimics "marked":https://github.com/chjj/marked, the popular markdown parser. So if you use that in your project then you can support Textile as well with minimal effort.
Currently, the only supported option is @breaks@ which can be used to enable/disable the default behavior of line-breaking single newlines within blocks.
bc. console.log( textile( "I am using __textile__." ) );
You can also get to the syntax tree, which uses "JsonML":http://www.jsonml.org/.
bc. var jsonml = textile.parse( text );
console.log( jsonml );
bc. $ textile -o hello.html
$ cat hello.html
Copyright (c) 2012, Borgar Þorsteinsson (MIT License).