I'm just getting into Markdown and think it's the bee's knees. I'm working in ASP.NET (MVC) and am wondering if there are any good .NET libraries for Markdown, and am also curious how SO renders it on the fly. It must be a JavaScript library.
StackOverflow uses Attacklab's WMD, a Markdown editor. It takes care of all the on-the-fly rendering. This is the relevant snippet of code in the StackOverflow page source that does the styling magic.
var jWmd = $("#wmd-input");
jWmd.not(".processed").TextAreaResizer();
jWmd.typeWatch( { highlight:false, wait:5000, captureLength: 5, callback:styleCode } );
jWmd.rules("add", { required: true, minlength: 10 });
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With