How do you store the markdown using WMD in ASP.NET?

后端 未结 2 1802
天涯浪人
天涯浪人 2020-12-14 23:21

I have implemented the WMD control that Stack Overflow uses into a project of mine, it almost works like a charm, but when I save the changes to the databas

2条回答
  •  感情败类
    2020-12-15 00:08

    Before you include wmd.js, or whatever you've named the WMD editor JavaScript code locally, add one line of JavaScript code:

    wmd_options = {"output": "Markdown"};
    

    This will force the output of the editor to Markdown.

提交回复
热议问题