http://static.serversidewiki.com/javascripts/textile.js
But it’s not what it should be to be honest. It didn’t do it for me, and a quick ajax request (as long as you put some delay so it doesn’t hit the server on each keystroke it won’t be too much of a problem) will return the real generated HTML.
Best regards
Peter De Berdt