This is similar in many ways to MarkItUp (<a href="http://markitup.jaysalvat.com/" rel="nofollow">http://markitup.jaysalvat.com/</a>), which I've had good experiences with.<p>One potential pitfall with JavaScript preview of Markdown (or Textile, or any other similar language) is that if you're not using the same script to transform the content at the server side, the final output can contain subtle differences. Not all implementations are precisely equal. If differences do occur, that can be frustrating for the user who just carefully previewed their work.<p>An alternative (albeit a more resource intensive one) would be to make ajax requests back to the server and have it perform the transformation and return it to the page. Unfortunately, that's probably not going to be satisfactory for realtime previewing.