Skip to content
sanketpatel32Public

About

Local Markdown workspace with live preview, PDF support, and a built-in terminal for Windows, Linux, and macOS.

Topics

Resources

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

mdpeek logo

mdpeek

A quiet, fast native Markdown reader and editor.

Mdpeek is being rebuilt as a pure Rust desktop application using GPUI. The former Tauri/JavaScript implementation has been removed from the main application path; the native crate is now the product.

License: MIT Platform

What’s new in v3.2.0

  • A refreshed light and dark workspace with a compact header, clearer tabs, a file explorer and outline, and a welcome screen.
  • Direct Edit, Split, and Preview controls. Split stacks vertically in narrow windows.
  • Recent files appear on the welcome screen and in Quick Open across restarts.
  • Use Copy file path from the command palette. Markdown reading time appears in the document status bar.

Download v3.2.0 for Windows, Linux, or macOS.

Current native feature set

  • Multi-tab Markdown, text, code, CSV/TSV, and image documents
  • Split, editor-only, and preview-only modes for text documents, plus image preview
  • Markdown rendering with GFM tables, task lists, frontmatter, MDX parsing, alert/callout surfaces, basic Mermaid flowcharts, and local images
  • Source editing with line numbers, indentation guides, folding, syntax highlighting, editor search/replace, Markdown autocomplete, formatting toolbar, and line operations
  • Clickable preview task checkboxes that update the Markdown source
  • Inline and block math fallback rendering with Unicode/script compaction
  • Wiki links ([[Page]]) and relative Markdown links open as documents
  • File explorer, heading outline, quick open (Ctrl+P), workspace content search (Ctrl+Shift+F), project-wide replace (Ctrl+Shift+R), daily notes (Ctrl+Shift+D), reopen closed tab, and reading mode (F11)
  • Session restoration for open documents, workspace, sidebar, theme, and active tab
  • Automatic reload for externally changed clean files
  • HTML, plain-text, and simple PDF export
  • Visual table editing at the cursor (Ctrl+Alt+M) with cell, row, column, movement, deletion, and alignment controls; copy tables as Markdown/CSV/TSV and fenced code blocks
  • Markdown snippet picker (Ctrl+Shift+S) for common blocks and structures
  • Zoom controls and keyboard zoom shortcuts for previews and image documents
  • Text transformations for sorting, case conversion, generated tables of contents, and date insertion
  • Copy rendered HTML/plain text, browser preview, document back/forward history, and bulk tab close commands
  • Persistent settings for line numbers, word wrap, autosave, and theme
  • Document statistics with word/character counts, paragraph count, and reading time
  • Freehand image annotation with color/size controls and non-destructive PNG export
  • Document link checking (Ctrl+Alt+I)
  • Light and dark themes

Screenshots

Light theme Dark theme
Light theme with the Markdown editor and preview side by side Dark theme with the Markdown editor and preview side by side

Welcome screen · Stacked Split in a narrow window

Build and run

Use stable Rust with rustfmt and clippy. On Debian or Ubuntu, install the same system libraries as CI.

rustup component add rustfmt clippy
sudo apt-get update
sudo apt-get install -y libxkbcommon-x11-dev libwayland-dev libxkbcommon-dev libfontconfig-dev
cargo run -p mdpeek

Run checks:

cargo fmt --check
cargo clippy --locked -p mdpeek -- -D warnings
cargo test --locked -p mdpeek
cargo build --locked --release -p mdpeek

Open files or folders directly:

cargo run -p mdpeek -- README.md path/to/workspace

Keyboard shortcuts

Action Shortcut
New document Ctrl+N
Open file Ctrl+O
Quick open Ctrl+P
Command palette Ctrl+Alt+P
Workspace search Ctrl+Shift+F
Workspace replace Ctrl+Shift+R
Insert snippet Ctrl+Shift+S
Edit table at cursor Ctrl+Alt+M
Go to line Ctrl+G
Duplicate line Ctrl+D
Move line up/down Alt+Up / Alt+Down
Join line with next Ctrl+J
Bold / italic / inline code / link Ctrl+B / Ctrl+I / Ctrl+` / Ctrl+K
Strikethrough / quote Ctrl+Shift+X / Ctrl+Shift+.
Zoom in/out/reset Ctrl+= / Ctrl+- / Ctrl+0
Document back/forward Alt+Left / Alt+Right
Settings Ctrl+,
Daily note Ctrl+Shift+D
Check links Ctrl+Alt+I
Open folder Ctrl+Shift+E
Save Ctrl+S
Save as Ctrl+Alt+S
Close tab Ctrl+W
Reopen closed tab Ctrl+Alt+T
Edit/preview Ctrl+E
Sidebar Ctrl+B when the editor is not focused
Reading mode F11
Reload Ctrl+R
Theme Ctrl+Shift+L
Export HTML/text/PDF Ctrl+Shift+H / Ctrl+Shift+T / Ctrl+Shift+P
Next/previous tab Ctrl+Tab / Ctrl+Shift+Tab
Quit Ctrl+Q or Alt+F4

Rebuild status

This is an alpha native rebuild. Core document workflows are implemented in Rust/GPUI, but the legacy application had a much larger feature surface. Mermaid flowcharts, visual table operations, image annotation, editor line operations, formatting controls, editor preferences, transformations, document history, and export/copy conveniences are now ported. Not yet ported: full KaTeX-typeset math, sequence/class/other Mermaid diagram families, rich system print preview, typewriter scrolling, templates, smart list continuation/autopair editing behavior, and automatic updates in the native application. The current PDF export is intentionally simple and is not a pixel-perfect print pipeline.

Contributing

See CONTRIBUTING.md. Commit small, focused changes using conventional commit messages.

About

Local Markdown workspace with live preview, PDF support, and a built-in terminal for Windows, Linux, and macOS.

Topics

Resources

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages