How do get WMD-Editor to post Markdown to the server and not HTML?

我们两清 提交于 2019-12-03 02:41:07

In the master branch of the SO version, the interesting line is line 2341:

Attacklab.wmd_defaults = {version:1, output:"HTML", lineLength:40, delayLoad:false};

Change this to ask for markdown instead:

Attacklab.wmd_defaults = {version:1, output:"markdown", lineLength:40, delayLoad:false};

.. and you'll get the Markdown instead.

In my version (mooWMD) you have to change the value at line 1343 from 'html' to 'markdown'.
I believe it is the same for the SO version (look for the 'output' configuration value).

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