<p>I have implemented the WMD control that Stack Overflow uses into a project of mine, it <strong>almost</strong> works like a charm, but when I save the changes to the database it is saving the HTML version and not the Markdown version.</p>

<p>So where I have this in my text box:</p>

<pre><code>**boldtext**
</code></pre>

<p>It is really saving this:</p>

<pre><code>&lt;b&gt;boldtext&lt;/b&gt;
</code></pre>

<p>How do I make it save the Markdown version?</p>

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.