-
Notifications
You must be signed in to change notification settings - Fork 57
Usage Guide
This page explains how to use every feature of Markdown Viewer once it is running.
- Interface Overview
- Writing Markdown
- Importing Files
- Exporting Content
- View Modes
- Dark / Light Mode
- Synchronized Scrolling
- Content Statistics
- Sharing via URL
- Data Storage & Privacy
- Copy to Clipboard
- Keyboard Shortcuts
The application is divided into two main panes and a top toolbar:
┌─────────────────────────────────────────────────────────┐
│ Toolbar: theme | view mode | stats | share | export… │
├──────────────────────────┬──────────────────────────────┤
│ EDITOR (left pane) │ PREVIEW (right pane) │
│ Write Markdown here │ Rendered HTML output │
└──────────────────────────┴──────────────────────────────┘
- Toolbar — Contains all application controls.
- Editor pane — A plain-text area where you type Markdown.
- Preview pane — Shows the live-rendered output, styled like GitHub.
The divider between the two panes can be dragged to resize them.
- Click anywhere in the Editor (left pane).
- Start typing Markdown. The Preview (right pane) updates in real-time.
The editor supports the full CommonMark specification plus GitHub Flavored Markdown (GFM) extensions. See the Markdown Reference page for a complete syntax guide.
When you first open the application, the editor contains a sample document demonstrating the key features. You can clear it and start writing your own content.
You can load Markdown into the editor in three ways:
Drag a .md file from your file explorer directly onto the editor pane. The file content replaces the current editor content.
- Click the 📂 Import button in the toolbar.
- Select a
.mdfile in the file picker dialog. - The file content is loaded into the editor.
- Click GitHub Import in the toolbar (or in the mobile menu).
- Paste a public GitHub URL:
- Repository URL (for example:
https://github.com/owner/repo) - Folder URL (for example:
https://github.com/owner/repo/tree/main/docs) - Markdown file URL (for example:
https://github.com/owner/repo/blob/main/README.md)
- Repository URL (for example:
- If multiple Markdown files are found, use the in-app file browser to select one or more
.mdfiles. - Use Select All to quickly select every listed Markdown file (or clear the selection).
- Click Import Selected to open all selected files in new tabs.
Tip: Only
.mdand.markdownfiles are accepted.
Click the Export button (or the dropdown arrow next to it) to save your content in different formats.
Saves the raw Markdown source exactly as typed in the editor.
Saves the full rendered HTML, including the GitHub Markdown stylesheet, so the file looks the same when opened in any browser.
Generates a PDF of the rendered preview using jsPDF and html2canvas. The PDF preserves styling, code highlighting, and diagrams.
Note: For best PDF quality, use the Print dialog (
Ctrl+P/Cmd+P) in your browser and choose "Save as PDF". This provides higher-fidelity output than the built-in PDF export.
Use the View Mode buttons in the toolbar to change the layout:
| Icon | Mode | Description |
|---|---|---|
⬜⬜ |
Split View (default) | Editor and preview side by side |
⬜ |
Editor Only | Full-width editor, preview hidden |
◼ |
Preview Only | Full-width preview, editor hidden |
On mobile devices, the app automatically switches to Preview Only mode to save space, and you can tap the editor icon to switch to editing.
Click the 🌙 / ☀️ toggle button in the toolbar to switch between:
- Light Mode — White background, dark text (default)
- Dark Mode — Dark background, light text
Your preference is saved in the browser's localStorage and restored on the next visit.
When in Split View mode, the editor and preview panes scroll in sync by default. To toggle this:
- Click the 🔗 Sync Scroll button in the toolbar to disable synchronization.
- Click again to re-enable it.
When sync scroll is on, scrolling either pane causes the other to follow proportionally.
Click the 📊 Stats button in the toolbar to see:
| Stat | Description |
|---|---|
| Words | Total word count |
| Characters | Total character count (excluding whitespace) |
| Reading time | Estimated reading time at 200 words/minute |
| Lines | Total number of lines |
Stats update in real-time as you type.
Click the 🔗 Share button to generate a shareable URL that encodes your entire Markdown document:
- The content is compressed using pako (zlib/deflate).
- The compressed bytes are Base64-encoded.
- The encoded string is appended to the URL as a hash fragment (
#content=…).
Share the resulting URL with anyone. When they open it, the editor is automatically populated with your content.
Warning: Very large documents produce very long URLs. Some browsers and link-shorteners may have URL length limits.
Markdown Viewer is transparent about where your data lives:
-
Autosave: Your content and tab state are stored in your browser’s
localStorage. - Preferences: Theme, view mode, and sync scroll settings are saved locally.
- Clearing data: Use your browser’s site data controls to remove saved content.
-
GitHub import: Imports access public GitHub URLs via
api.github.comandraw.githubusercontent.com. - Share links: Shared URLs embed content in the hash portion of the URL; avoid sharing sensitive content.
Click the 📋 Copy button to copy the rendered HTML of the preview to the clipboard. You can then paste it into email clients, word processors, or any tool that accepts rich text.
| Shortcut | Action |
|---|---|
Ctrl + S / Cmd + S
|
Export as Markdown |
Tab |
Insert 2 spaces (inside editor) |
Ctrl + Z / Cmd + Z
|
Undo |
Ctrl + Y / Cmd + Y
|
Redo |