MarkPad

A clean, distraction-free markdown editor with live preview, built with React, TypeScript, and Tailwind CSS.

React 19 TypeScript Vite 7 Tailwind CSS v4 Zustand v5 marked highlight.js
View Code Live Demo
MarkPad

Split-Pane Editor with Live Preview

Welcome note with split pane editor

Write markdown on the left, see the rendered output instantly on the right. The divider between panes is draggable to adjust the split ratio. The status bar at the bottom shows word count, character count, and last saved time.

Creating and Managing Notes

Creating a new note

Click + New Note in the sidebar to create a new note. Each note has an editable title and content area. Notes are listed in the sidebar sorted by most recently updated, with a short preview of content.

Formatting Toolbar

Editor with toolbar and rendered preview

The toolbar provides quick-access buttons for common markdown formatting: Bold, Italic, Headings (H1-H3), Links, Inline Code, Bullet Lists, Numbered Lists, and Blockquotes. Clicking a button inserts the appropriate markdown syntax around the selected text.

Dark and Light Themes

Dark mode

Cycle between light, dark, and system-detected themes using the theme toggle button in the header. The app respects the system color scheme preference when set to “system”.

Focus Mode

Focus mode

Toggle focus mode to hide the sidebar and maximize your writing area. The editor and preview take up the full width for distraction-free writing.

Sidebar collapsed

Collapse the sidebar independently of focus mode for more horizontal space while keeping the header controls visible.

Export Options

Export dropdown menu

Export your notes in multiple formats via the download menu in the header:

  • Download .md — Save the raw markdown as a file
  • Download .html — Save as a styled HTML document
  • Copy to clipboard — Copy the markdown content

Delete Confirmation

Delete confirmation modal

Deleting a note shows a confirmation dialog to prevent accidental data loss. Hover over a note in the sidebar to reveal the delete button.

Responsive Layout

Mobile responsive view

On smaller screens, the layout stacks vertically with the editor above and preview below, keeping the sidebar and all controls accessible.

Keyboard Shortcuts

ShortcutAction
Ctrl/Cmd + NNew note
Ctrl/Cmd + BBold
Ctrl/Cmd + IItalic
Ctrl/Cmd + KInsert link
Ctrl/Cmd + /Toggle sidebar
Ctrl/Cmd + EToggle focus mode

Persistence

All notes and UI preferences (theme, sidebar state, editor width) are automatically saved to localStorage and restored on the next visit.