Preview GitHub-flavored Markdown locally using Hugo. Renders admonitions, Mermaid diagrams, KaTeX math, GeoJSON/TopoJSON maps, and light/dark theme toggling all whilst matching GitHub's README style.
People who lose internet and power often: this tool is for you. It renders Markdown the exact same way as GitHub would. If you are offline and still need to make meaningful contributions, focusing on documentation is often the cromulent choice (no coding agents, no Wikipedia/GitHub available, etc).
The point of this tool is offline preview. Install once, then keep working with no network connection when power, internet, or both are unreliable.
git clone https://github.com/brege/ghrm.git
cd ghrm
make install# one file
ghrm README.md
# multiple files, recursively
ghrm .Opens a live-reloading preview in your browser. Edits to the file are reflected automatically.
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
- 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 test/basics.md
ghrm test/diagrams.md
ghrm .make uninstall
make clean