- Documents are created and saved to localstorage if they have a H1 (one #), so to delete a document, simply remove the H1
- you can use it as a temporary editor by not specifying the h1
- The preview auto scroll is determined by the caret in the editor which affects the caret in the preview
- Press ESC to toggle the preview
- Alpine.js (app logic, interactivity, state management)
- tailwindcss (ui styling)
- CodeMirror (editor)
- markdown-it (Markdown parser)
- highlight.js (Syntax highlighting for md codeblocks)
- incremental-dom (dom diffing)
- markdown-it-incremental-dom (to integrate the above two together)
- markdown-it-task-lists (for checkbox support)
- github-markdown-css (CSS to style the rendered markdown)