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

2

11

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

Uni answered 18/6, 2009 at 17:51 Comment(0)
A
14

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.

Abscissa answered 13/7, 2009 at 19:42 Comment(1)
Awesome, Thanks you have no clue how useful this was.Schurman
U
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).

Uppercut answered 12/7, 2009 at 15:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.