Preview GitHub-flavored Markdown locally, offline, and in your browser. It renders admonitions, Mermaid diagrams, KaTeX math, GeoJSON/TopoJSON maps, and light/dark theme toggling all whilst matching GitHub's README and File Explorer style.
People who lose internet and power often: this tool is for you. It renders Markdown and file trees the exact same way as GitHub would. If you are offline and still need to make meaningful contributions to your projects, focusing on documentation and organization activity hold you over until resources become unavailable.
cargo install --git https://github.com/brege/ghrm ghrm# one file
ghrm README.md
# multiple files, recursively
ghrm .Opens a live-reloading preview in your browser. Edits to the file in your editor are reflected automatically on save.
Add to your lazy.nvim config:
{ "brege/ghrm", ft = "markdown", config = function() require("ghrm").setup() end }Commands: :Ghrm to start, :GhrmStop to stop, or just exit nvim.
- Works offline
- File explorer with fd-like semantics
- Syntax highlighting
- Focus filters for Markdown, source, and hidden files
- GitHub alert admonitions (
[!NOTE],[!TIP],[!WARNING], etc.) - Collapsible
<details>sections and normal Markdown formatting and highlighting - Mermaid diagrams
- KaTeX math (inline, display, and fenced
mathblocks) - GeoJSON and TopoJSON maps
- Light/dark theme toggle
ghrm README.md
ghrm smoke/basics.md
ghrm smoke/diagrams.md
ghrm .cargo uninstall ghrm
rm --recursive ~/.cache/ghrm- detect languages via shebang
- add toggle for gitignore'd items in UI