In prototypes and HTML-based slide decks, it's pleasant to write in markdown sometimes and avoid all those angle brackets.
So the idea is you're operating in an HTML environment but a few shortcuts would help so use markdown here and there.
- Add the following script into your HTML after the content, before other scripts
- It automatically adds github flavored markdown's if it's not already in.
- Add
data-markdown
attributes to any tags where you're gonna use markdown within. (see example)
This script works fine in your page and can also be used as a userscript. Just click the raw
link right below to install.
(As this requires some clientside js and can trigger FOUC, this is not for production use)
@espadrine, @Digitalsabre This works: https://gist.github.com/1349945 The trick is you have to run your code in the context of the page, not of the userscript. Bonus (untested): it should work in Firefox (Greasemonkey or Scriptish), Chrome, and Opera.