Vesperino/MerMarkEditor
Tentang
Elegant and simple Markdown, Mermaid editor
Desain dan mediaYang dapat Anda lakukan
- Edit your markdown directly — "rewrite this section, friendlier tone", "extract action items", "translate to English". Writes straight to disk atomically; the editor reloads.
- Read across folders you authorize — point the access map at a project folder and the AI sees yesterday's notes, your glossary, your style guide.
- Modify peer files — split a long doc into multiple notes, generate a summary alongside the source, build a TOC file for a folder.
- Search the web — toggle the network tool on when you need fresh information.
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- +2
- dalam 15 hari
- +3
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Asli
A modern, open-source Markdown editor with built-in Mermaid diagram support
AI Assistant • Presentations • Features • Screenshots • Installation • Usage • Development
Why MerMark Editor?
MerMark Editor combines the simplicity of Markdown with the power of Mermaid diagrams in a beautiful, native desktop application. Perfect for developers, technical writers, and anyone who needs to create documentation with flowcharts, sequence diagrams, and other visualizations.
Key Benefits
- No cloud dependency - Your documents stay on your computer
- Native performance - Built with Tauri for fast, lightweight operation
- WYSIWYG editing - See your formatted content as you type
- Mermaid integration - Create diagrams directly in your documents
- Marp presentations - Build slide decks in Markdown with a live preview and fullscreen present mode
- Multi-root workspaces - Open one folder or many; the AI sees them as scoped read-only context
- Local AI assistant - Talk to Claude, Codex, a fully offline Ollama model, or any OpenAI-compatible local server about your notes; they edit your files directly
- Cross-platform - Available on Windows, macOS and Linux
Presentations (Marp)
Turn any note into a slide deck. Start a Marp presentation from the New menu (or open an existing deck), write your slides in plain Markdown, and watch them render live next to the editor. A dedicated toolbar lets you add slides, switch themes, set per-slide layouts, drop in backgrounds, toggle slide numbers, and change the font size — then present fullscreen.
- Live split preview - edit on the left, see the real slides on the right, scrolling in sync
- Themes with previews - gaia, default, uncover; pick from graphical thumbnails
- Local and web images - both render in the live preview and in exports
- Present fullscreen - advance with arrow keys, a click, or auto-advance
Local AI Assistant
If you already pay for Claude Code or OpenAI Codex — or both — MerMark plugs that subscription straight into the editor. The AI panel speaks to the claude and codex CLIs you already have logged in, so every request goes through the account you're already paying for. No API key to generate. No second bill. No proxy sitting between you and your provider.
AI panel docked next to the editor with model picker, threads dropdown, pinned fragments and live context bar
Use the subscription you already have
- Claude Code or Codex on a Pro/Plus plan — MerMark uses that login, no extra account.
- No API token to manage — the CLI handles auth, MerMark never sees your keys.
- Direct to provider — requests go from your machine straight to Anthropic or OpenAI; nothing else in between.
- No telemetry — zero data leaves the editor beyond the CLI call you'd run in a terminal yourself.
- Switch providers per turn — pick Claude for one chat, Codex for the next; all configured in one panel.
Fully offline with Ollama
Prefer to keep everything on your own machine? Pick Ollama as the provider and chat against a local model — no account, no subscription, no network.
- Requires a local Ollama install running on your machine (
ollama serve); pull a model first (e.g.ollama pull llama3). - Models are listed automatically from your local install (
/api/tags) — the model dropdown fills with whatever you've pulled. - Streams replies straight from the local HTTP API; token usage is surfaced in the context bar just like the cloud providers.
- Configurable base URL in Settings → AI (defaults to
http://localhost:11434) if Ollama runs on another host or port. - Graceful when offline — if Ollama isn't running, the provider shows as Not running with a clear hint instead of failing silently.
Any OpenAI-compatible local server
Run your own model server? Pick OpenAI-compatible as the provider and point it at any server that speaks the OpenAI HTTP API — llama.cpp llama-server, LM Studio, vLLM, a local Mistral, or even Ollama's own /v1 endpoint.
- Speaks the OpenAI API —
POST /v1/chat/completions(streamed SSE) andGET /v1/models; no account, no subscription, no network beyond your server. - Models are listed automatically from
/v1/models— the dropdown fills with every model your server exposes. - Streams replies straight from the local HTTP API; token usage is surfaced in the context bar just like the cloud providers.
- Configurable base URL in Settings → AI (defaults to
http://localhost:8080); the/v1path is appended automatically, so a base that already ends in/v1is not doubled. - Graceful when offline — if the server isn't running, the provider shows as Not running with a clear hint instead of failing silently.
What it can do
- Edit your markdown directly — "rewrite this section, friendlier tone", "extract action items", "translate to English". Writes straight to disk atomically; the editor reloads.
- Read across folders you authorize — point the access map at a project folder and the AI sees yesterday's notes, your glossary, your style guide.
- Modify peer files — split a long doc into multiple notes, generate a summary alongside the source, build a TOC file for a folder.
- Search the web — toggle the
networktool on when you need fresh information. - Run shell commands — opt-in
bashtoggle for grepping notes, running a build, anything terminal. Default off. - Auto-snapshot every AI write — one-click Revert if the result isn't what you wanted.
Multi-fragment selection and image attachments
- Pin one or more highlighted fragments — Visual and Code view.
- The AI receives only those fragments, not the entire document.
- Toggle Send off to keep pins visible without sending this turn.
- Paste a screenshot (
Ctrl+V), drag-drop an image, or pick from disk. - 8 MB per image, png / jpg / gif / webp / bmp.
- Both Claude and Codex see the image.
- Sent images stay in chat history as thumbnails so you remember what you passed.
Pin multiple highlighted fragments before sending — each appears as a numbered chip in the composer
Tool calls visible in the chat
- Every tool the model invokes shows up inline as a dashed chip in the transcript.
- Chip carries the tool name and a one-line preview of the arguments.
- Click to expand a pretty-printed JSON view of the full call.
- Covers Read, Edit, Write, Bash, WebFetch, codex shell — all of them.
Every tool the AI uses (Read, Edit, Write, Bash, WebFetch, ...) shows up inline as an expandable chip
Per-document threads with context restore
- Every doc has its own scrollable thread history.
- + archives the current chat and starts a fresh one.
- Up to 50 threads per document, persisted in
localStorage. - Reopening an old thread restores the CLI, model, and reasoning effort you were using.
Safety, auditability, per-document access control
- Per-document access map: explicit read paths, write paths, tool toggles.
- Add files with + File, whole folders with + Folder.
- Pre-edit snapshots auto-rotated (default 3 + pinned), one-click Revert.
- Statusbar dot: green / red / blinking-red (bypass on).
- Append-only audit log of every AI action, viewable in Settings.
Per-document access map — explicit read / write paths plus tool toggles
Snapshot history — restore, pin, export or delete pre-edit revisions
Two providers, one panel
- Switch
claude/codexfrom the chat header. - Per-CLI defaults persist (last model, last effort).
- Token streaming with a thinking indicator until the first chunk arrives.
- Segmented context-usage bar — input, cache, free — pulled from the CLI's reported usage.
- Clickable links open through the editor's external-link confirm dialog.
- Send shortcut:
Ctrl+Enter(Win/Linux),Cmd+Enter(macOS). - Minimize to a side tab, fullscreen, close — all in the panel header.
AI editing for Mermaid diagrams
- Click AI on any diagram (or in fullscreen mermaid edit) — the main panel auto-pins the diagram source as scoped context and switches its preamble into mermaid-edit mode.
- Same panel, same model picker, same multi-turn conversation you use for prose.
- Each assistant reply is parsed for a
mermaidfenced block and rendered live in place of the saved diagram. - Apply ✓ / Discard × / Stop buttons appear in the panel chip; Apply commits to the node, Discard keeps iterating, Stop ends the session.
The full feature list — including snapshot rotation, tmp-recovery on crashed sessions, multi-window-safe streaming and per-CLI session isolation — lives in RELEASE_NOTES.md.
Features
Markdown Editing
- Full GitHub Flavored Markdown (GFM) support
- WYSIWYG editor with live preview
- Source-preserving saves: editing a word in visual mode changes only that line on disk; wrapping, blank lines, list markers, spacing and line endings stay as you wrote them
- Syntax highlighting for code blocks (50+ languages)
- Tables, task lists, blockquotes, and more
- Keyboard shortcuts for efficient editing
- Document styles — GitHub, Obsidian, Typora and iA Writer inspired presets in Settings → Editor, with live preview and per-style overrides for font, size, line height, paragraph spacing and width
Mermaid Diagrams
- Flowcharts, sequence, class, state, ER, Gantt, pie and many more diagram types
- ELK layout — add
layout: elkto a flowchart for tidier arrow routing and less overlap on dense architecture diagrams - Resizable in document — drag the right edge to set a custom width (persisted in markdown)
- Resizable split in fullscreen edit — drag the divider between code and preview pane
- AI assist — click AI on any diagram and the main AI panel takes over with the diagram pinned as context
- Quick templates — flowchart / ELK flowchart / sequence / class / state / ER / Gantt / pie / mindmap one-click inserts
Presentations (Marp)
- Marp decks — pick Marp presentation for a new file, or open any existing deck
- Live split preview — edit on the left, see the rendered slides on the right, scrolling in sync
- Presentation toolbar — add slides, switch theme (gaia / default / uncover) with previews, set per-slide layout, add backgrounds, toggle slide numbers, change aspect ratio and font size
- Present fullscreen — advance with arrow keys, a click, or auto-advance
- Images — local files and web URLs render in the live preview and in exports
Workspaces
- Multi-root sidebar — open one folder or many; each gets a collapsible section with its own file tree
- File tree — expand / collapse folders, open files in tabs, OS-level reveal, rename, delete, new file / new folder
- Bulk folder actions — right-click a workspace header and choose Collapse all folders or Expand all folders. Option-click on macOS or Alt-click on Windows/Linux to toggle a folder and its descendants.
- AI sees the workspace — workspace root is added to the AI preamble as a read-only scope automatically
- Quick switcher (
Ctrl+Shift+E) — workspaces, files, full-text grep across the active workspace - Drag to reorder workspaces; expanded folders persist between sessions
- Keyboard navigation — Tab into the file tree, move with the arrow keys, Home and End; Right and Left expand and collapse folders. Shift with the arrows extends the selection, Space toggles it. Enter opens a file or toggles a folder (macOS:
Cmd+↓), F2 renames (macOS:Enter)
Export & Integration
- Export to PDF — the Current Editor preset prints with your document style; syntax-highlighted code blocks and content-sized tables; the preview shows real pages with the headers, footers and page numbers you will print, on Windows, macOS and Linux
- Save as Markdown (.md files), clean portable format
- Export to Word (DOCX) with the fonts, heading sizes and spacing of your document style
User Experience
- Native application menus — file, editing, formatting, insertion, view, and presentation commands remain available even when their toolbar controls are hidden
- Layout presets — choose Full or Minimal in View → Customize Layout…; manual changes become Custom, and existing layouts are preserved
- Tab support with pin / context menu — Pin / Unpin / Close / Close others / Close all but pinned / Close saved
- Dark/Light themes plus a Minimal theme variant (Mermaid-logo palette: teal + coral on slate)
- Word-style zoom slider in the status bar —
±buttons + percentage readout - Character / word / line / token counters as a single movable unit
- Styled prompt / confirm dialogs throughout (no native browser modals)
- Auto-save — never lose your work
- Multilingual UI - English, Polish, Chinese, German and Japanese interface
- Keyboard shortcuts modal - Quick reference for all shortcuts (
Ctrl+/)
Advanced Features
- Split View - Edit two documents side by side with adjustable split ratio
- Compare Tabs - Diff comparison between left and right pane documents (
Ctrl+Shift+C) - Change Tracking - View all changes made since last save (
Ctrl+Shift+D) - Code View - Switch between visual WYSIWYG and raw Markdown with cursor position tracking
- AI Token Counter - Estimate tokens for GPT (OpenAI), Claude (Anthropic), and Gemini (Google)
- Multi-window support - Open multiple independent editor windows
- Cross-window tab management - Drag and drop tabs between panes and windows
- File watching - Automatically detects external file changes and reloads content
- Conflict detection - Shows inline diff when both local and external changes exist
- Manual reload - Reload file from disk with
Ctrl+R
Screenshots
Dark mode
Clean, minimalist interface with intuitive toolbar
Multi-tab editing with formatted documents and clickable table of contents
C4 Architecture diagrams with zoom controls and fullscreen mode
Fullscreen diagram view with 400% zoom for detailed inspection
Technical documentation with code blocks and embedded diagrams
Split view for editing two documents simultaneously
Compare documents side by side with line-level diff highlighting
View all changes made since last save with additions and deletions
Toggle between visual and Markdown code view with cursor tracking
Quick reference for all keyboard shortcuts (Ctrl+/)
AI token counter with model selection (GPT, Claude, Gemini)
Multiple windows with cross-window tab drag and drop
Installation
Download
Download the latest version from the Releases page.
| Platform | Download |
|---|---|
| Windows | .exe / .msi installer, or a portable .zip that runs without admin rights |
| macOS | .dmg (universal: Apple Silicon + Intel) |
| Linux | .deb / .AppImage |
Important Note
This app is open-source and not code-signed. Your OS may show a security warning on first launch:
- Windows (SmartScreen): Click "More info" → "Run anyway"
- macOS: Right-click the app → "Open" → "Open" to bypass Gatekeeper
This is standard behavior for open-source software distributed without a paid code signing certificate. The source code is fully available for review in this repository.
System Requirements
- Windows: Windows 10 or later (64-bit)
- macOS: macOS 10.15 (Catalina) or later
- Linux: Ubuntu 22.04+ or equivalent (WebKitGTK 4.1 required)
Usage
Basic Editing
- Open a file:
Ctrl+O(orCmd+Oon macOS) - Save:
Ctrl+S(saves as Markdown) - Save As:
Ctrl+Shift+S - Print or export to PDF: Use File → Print… (
Ctrl+P) or File → PDF…, or the PDF toolbar button - Simplify the interface: Open View → Customize Layout… and choose Minimal. Workspace, statistics, zoom, AI, and Code controls share the bottom bar, leaving the top toolbar empty. All commands remain in the native menus. Restore the original arrangement with View → Restore Default Layout….
Settings is always available in the application menu on macOS, or the Edit menu on Windows/Linux, and through Cmd/Ctrl+,. The Minimal layout is independent of the Minimal color theme.
Keyboard Shortcuts
| Action | Shortcut |
|---|---|
| New file | Ctrl+N |
| Open file | Ctrl+O |
| Save | Ctrl+S |
| Save As | Ctrl+Shift+S |
| Print / PDF | Ctrl+P |
| Command Palette | Ctrl+Shift+P / F1 |
| Search workspace (files and content) | Ctrl+Shift+E |
| Workspace content search | Ctrl+Shift+F |
| Find | Ctrl+F |
| Find next / previous | Ctrl+G / Ctrl+Shift+G |
| Replace | Ctrl+H (macOS: Cmd+Option+F) |
| Go to heading | Ctrl+Shift+O |
| Insert link | Ctrl+K |
| Toggle Markdown comment (Code view) | Ctrl+/ |
| Select next occurrence (Code view) | Ctrl+D |
| Rename focused sidebar file | F2 (macOS: Enter) |
| Move in the sidebar file tree | ↑ / ↓ / Home / End (Shift extends the selection) |
| Expand / collapse folder in the file tree | → / ← |
| Open focused file or toggle folder | Enter (macOS: Cmd+↓) |
| Select / deselect focused file tree item | Space |
| Undo | Ctrl+Z |
| Redo | Ctrl+Y (macOS: Cmd+Shift+Z) |
| Bold | Ctrl+B |
| Italic | Ctrl+I |
| Heading 1–6 / paragraph | Ctrl+Alt+1 … Ctrl+Alt+6 / Ctrl+Alt+0 |
| Show changes | Ctrl+Shift+D |
| Compare tabs | Ctrl+Shift+C |
| Reload file | Ctrl+R |
| Close tab | Ctrl+W |
| Next / previous tab | Ctrl+Tab / Ctrl+Shift+Tab (also Ctrl+PageDown / Ctrl+PageUp) |
| Jump to tab 1–9 | Ctrl+1 … Ctrl+9 |
| Toggle Code / Visual view | Ctrl+Shift+V |
| Zoom in / out | Ctrl++ / Ctrl+- |
| Reset zoom | Ctrl+0 |
| Settings | Ctrl+, |
| Keyboard shortcuts help | Ctrl+/ (outside Code view) |
| Close modal | Escape |
You can change app command bindings in Settings → Keyboard Shortcuts: search for a command, click a binding to record a replacement, or use + to add an alternative. Conflicting assignments are rejected and changes are saved automatically. Remove a binding with ×, or restore defaults for one command or all of them. Quick Open has no default key; assign one there if you want it. Clipboard and text navigation keys keep their system behavior, and AltGr characters (ą, ć, @, [, {) are never treated as shortcuts.
On macOS, use
⌘(Cmd) in place ofCtrl, and⌥(Option) in place ofAlt.
Creating Mermaid Diagrams
Click the Mermaid button in the toolbar or type:
```mermaid
graph LR
A[Start] --> B[Process]
B --> C[End]
```
This creates a flowchart:
[Start] --> [Process] --> [End]
Supported Diagram Types
graph/flowchart- Flow diagramssequenceDiagram- Sequence diagramsclassDiagram- Class diagramsstateDiagram-v2- State diagramserDiagram- Entity Relationship diagramsgantt- Gantt chartspie- Pie chartsjourney- User journey diagramsgitgraph- Git graphsmindmap- Mind mapstimeline- Timelines
Development
Prerequisites
Setup
# Clone the repository
git clone https://github.com/Vesperino/MerMarkEditor.git
cd MerMarkEditor
# Install dependencies
pnpm install
# Run in development mode
pnpm tauri dev
# Build for production
pnpm tauri build
Running Tests
# Run tests
pnpm test
# Run tests once
pnpm test:run
Tech Stack
- Frontend: Vue 3 + TypeScript
- Editor: TipTap (ProseMirror-based)
- Diagrams: Mermaid.js
- Desktop: Tauri 2.0
- Build: Vite
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Codycody31 - Huge thanks for macOS and Linux support!
- TipTap - Headless editor framework
- Mermaid - Diagramming and charting tool
- Paged.js - Paged media layout for the PDF preview and WebKit printing
- Tauri - Desktop application framework
- Vue.js - Progressive JavaScript framework
Support
MerMark is and will stay free and open source under the MIT license. If you find this project useful, please consider:
- Giving it a star on GitHub
- Reporting bugs and suggesting features
- Contributing to the codebase
- Buying me a coffee — totally optional, just a way to say thanks if MerMark saves you time
Made with ❤️ by Vesperino
Jelajahi proyek terkait
Memuat…