It seems that WMD-Editor is posting HTML to the server instead of the markdown. How can i get it to send the Markdown?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.
回答2:
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).