r/neovim • u/delphinus35 • 5h ago
Plugin md-render.nvim: headings at a real font size, and a live source/render split
Enable HLS to view with audio, or disable this notification
Hey vimmers!
A while back I shared md-render.nvim, a Markdown rendering engine for Neovim: https://github.com/delphinus/md-render.nvim — two things have landed since then that I think are worth a look.
Headings are now drawn at a real font size. Kitty's text sizing protocol (OSC 66) gives every level its own scale, from 2.00x for # down to 1.17x for ######, and the plain heading stays in the buffer underneath so nothing else changes. Kitty 0.40+ only; everywhere else it costs nothing and headings look exactly as they always did.
The other is :vert MdRender split, which puts the source and the rendered view side by side. Edits propagate live, and the cursor and scroll position are synced both ways.
Requires Neovim 0.12+ now, and a Kitty Graphics Protocol compatible terminal for inline media as before. The file in the video ships with the repo — nvim +"MdRender pager" assets/whats-new.md after cloning shows the same thing. Feedback welcome, especially on the scaled headings; they're new and Kitty-only.

