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

橙三吉。 提交于 2019-11-28 21:39:25
Clinton N. Dreisbach

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.

Ryan Yonzon

If you're using the new WMD from http://code.google.com/p/wmd-new/, open wmd.js and add this line:

wmd.wmd_env.output = 'markdown';

Excerpt:

...
wmd.ieCachedRange = null; // cached textarea selection
wmd.ieRetardedClick = false; // flag

wmd.wmd_env.output = 'markdown'; // force markdown output

// Returns true if the DOM element is visible, false if it's hidden.
// Checks if display is anything other than none.
util.isVisible = function (elem) {
...

That should do the trick.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!