views:

261

answers:

2

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.

+2  A: 

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 });
John Feminella
A: 

Ah, found the answer to one of my questions:

http://stackoverflow.com/questions/134235/is-there-any-good-markdown-javascript-library-or-control

chaiguy