A clean, standalone viewer that renders GitHub markdown files with faithful GitHub-style formatting, syntax highlighting, and interactive Mermaid diagrams. Live at mkview.tech.
MKView is a specialized web tool that fetches and renders GitHub-hosted markdown files in a distraction-free interface. It reproduces GitHub's native markdown rendering, including syntax-highlighted code blocks, Mermaid diagrams, tables, and dark mode support, while stripping away all surrounding repository UI. It also includes a Chrome extension for one-click viewing of any GitHub markdown file.
- GitHub-faithful markdown rendering with full GFM support
- Native Mermaid diagram rendering (flowcharts, sequence diagrams, mind maps, and more)
- Syntax highlighting for code blocks with a copy-to-clipboard button
- Automatic dark mode based on system preference
- Direct GitHub URL conversion (prepend
mkview.tech/to any GitHub markdown URL) - Chrome extension for one-click viewing from any GitHub page
- Custom 404 page with automatic URL redirection
- GitHub Pages deployment with custom domain (
mkview.tech)
- A modern web browser (Chrome, Firefox, Safari, or Edge)
- JavaScript enabled
- An internet connection for fetching GitHub-hosted markdown files
-
Clone the repository:
git clone https://github.com/danielcregg/markdown-browser-viewer.git cd markdown-browser-viewer -
Open
index.htmlin your browser, or deploy to any static hosting provider. -
Chrome Extension (optional):
- Open
chrome://extensions/in Chrome - Enable "Developer mode"
- Click "Load unpacked" and select the
extension/directory
- Open
There are two ways to view a markdown file:
-
URL Prepend: Navigate to any public GitHub markdown file and prepend
mkview.tech/to the URL:mkview.tech/https://github.com/username/repo/blob/main/README.md -
Direct Input: Visit mkview.tech and paste the GitHub markdown URL into the input field.
-
Chrome Extension: Click the MKView icon while on any GitHub page to open the current file in MKView.
- JavaScript - Core application logic, markdown parsing, and rendering
- HTML5 - Page structure and semantic markup
- CSS3 - GitHub-style theming with dark mode support via CSS custom properties
- Marked.js - Markdown parsing library
- Highlight.js - Syntax highlighting for code blocks
- Mermaid.js - Interactive diagram rendering
- GitHub Pages - Static site hosting
This project is licensed under the MIT License. See the LICENSE file for details.