An unobtrusive Chrome extension that renders Markdown files in the browser.
- Auto-renders
.mdand.markdownfiles - Syntax highlighting for code blocks
- Light/dark theme with auto-detection
- YAML and JSON frontmatter rendering
- Mermaid flowchart rendering (sort of — this is still experimental)
- ASCII tree structure rendering (this is what I was missing everywhere else!)
- Toggle prettifying on/off via context menu
-
Install dependencies and build:
npm install npm run build
-
Open Chrome and go to
chrome://extensions/ -
Enable "Developer mode" (toggle in top right)
-
Click "Load unpacked" and select the
distfolder -
For local files, click "Details" on the extension and enable "Allow access to file URLs"
- Auto-render: Opens
.mdor.markdownfiles and automatically renders them - Context menu: Right-click on any page and select "Prettify Markdown" to render, or "View raw Markdown" to revert
- Toolbar icon: Click the extension icon to toggle between rendered and raw markdown
This extension uses the following packages:
- tree-to-html - ASCII tree parsing
- marked-tree-to-html - Marked extension for trees
- mermaid-flowchart - Mermaid flowchart rendering
- marked-mermaid-flowchart - Marked extension for mermaid
- marked - Markdown parser
- marked-highlight - Syntax highlighting
- highlight.js - Code highlighting
This is free and unencumbered software released into the public domain (Unlicense).
