Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

It seems that WMD-Editor is posting HTML to the server instead of the markdown. How can i get it to send the Markdown?

like image 655
usr Avatar asked Jun 18 '09 17:06

usr


1 Answers

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.

like image 79
MatsLindh Avatar answered Oct 13 '22 00:10

MatsLindh