Skip to content

Instantly share code, notes, and snippets.

@iamandrewluca
Last active May 9, 2023 20:10
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamandrewluca/81e588a4a911e6f624dbbcb78c7f4db0 to your computer and use it in GitHub Desktop.
Save iamandrewluca/81e588a4a911e6f624dbbcb78c7f4db0 to your computer and use it in GitHub Desktop.
Instant Markdown editor

Instant Markdown editor in new tab

  1. Create a new bookmark
  2. To the link add data:text/html,
  3. After data:text/html, paste block below
  4. Save bookmark, and open it

First time it may take a while to load the library

<link rel="stylesheet" href="https://uicdn.toast.com/editor/latest/toastui-editor.min.css" />
<style>body{margin:0}</style>
<script type="module" defer>
  Object.defineProperty(window, 'localStorage', { value: { setItem() {}, getItem() {} }});
  import Editor from 'https://esm.sh/@toast-ui/editor';
  new Editor({ el: document.body, height: '100vh' });
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment