Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save judsonmitchell/4334e185028cab538cf0 to your computer and use it in GitHub Desktop.
Save judsonmitchell/4334e185028cab538cf0 to your computer and use it in GitHub Desktop.
This bookmarklet gives you a markdown editor/previewer in your browser in a single click.
data:text/html, <script type="text/javascript" src="https://cdn.rawgit.com/MrMitch/downatello/develop/downatello.js"></script><style type="text/css">#md,#html{position:absolute;top:0;bottom:0;padding:5px;border:none;outline:none;font-family:monaco,consolas,sans-serif;font-size:1em}#md{resize:none;left:0;width:48%;border-right:1px solid black}#html{left:50%;right:0;font-family:sans-serif}</style><textarea id="md" oninput="document.getElementById('html').innerHTML=downatello.toHtml(document.getElementById('md').value);"></textarea><div id="html"></div>
@judsonmitchell
Copy link
Author

Previous version served raw github file which the browser refused to execute because of mime-type. Changed to rawgit cdn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment