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 This is, admittedly, my first time working with user scripts. I really want this to work, so I hope someone comes to help us get it working.
@paulirish, @timmolendijk, @CPATIK, any ideas? After forking, I've replaced
// @match *
with// @include *
, but still GreaseMonkey does nothing. I've even added aGM_log('running...');
to the script and it doesn't appear to output that to the console. And since doing this, it will actually install in Chrome, but the result is a blank page. Check my fork for what I've done there, including fleshing out the example page.