Salomonsson.se
Oct 12 2016

Markdeep

A few days ago I came across Markdeep. A simple way to write formatted documents using markdown syntax.

I think markdown syntax is nice, and I’m already using it for all content on this site.

The idea is that you only need a small snippet of javascript text in the bottom of the document. You edit it in your regular notepad app, and view it through a browser. It will fall back to unformatted markdown text (still pretty readable) if it cannot fetch the javascript file.

However the original markdeep.js has a big flaw. At least for me! It cannot detect single line breaks! Like this one. So I modified it a bit.

If you want to use it, just copy and paste the following snippet in the bottom of a text document, and make sure the file ending is .html.

<!-- Markdeep: --><style class="fallback">body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src="http://salomonsson.se/md/markdeep.min.js"></script><script src="http://salomonsson.se/md/markdeep.min.js"></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility="visible")</script>

You might want to paste the following at the very top <meta charset="utf-8">

View a demo page with all the features