Give it a go in a live textile web editor.
$ npm install textile-js
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. :-)
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 );
$ textile -o hello.html hello world ^D $ cat hello.html <p>hello world</p>
Copyright © 2012, Borgar Þorsteinsson (MIT License).