title: Markdown to Html
body: <p>I want to allow users to edit articles with markdown, and then convert it to HTML for display. I use pagedown to do that. But I want users to be able to edit their articles later, which means sending them the Markdown code after it was converted to HTML, and I don't know what the best way to do that. I had these ideas in mind:  </p>
  
  <ul>
  <li>Use toMarkdown to convert HTML to markdown, but it doesn't work very well</li>
  <li>Store Markdown code only, which mean that the db might contain harmful code and need the user to sanitize the content, that's fine while it is used on my website only, but what if someone wants to access to it and forgets to sanitize the content in his application    </li>
  <li>Store Markdown &amp; HTML, the markdown is converted and the HTML is sanitized on server side, and we send the markdown code when the user wants to edit an article, and the HTML when he wants to view it. The problem is that the db will have to store much more data</li>
  <li>A better idea ?</li>
  </ul>
  
  <p>A good example of website that do that is stackoverflow, but I have no idea about the method they are using for this.</p>