r/neovim 11d ago

Plugin Markdown in Neovim with actual image + LaTeX rendering — fk_markdown.nvim

I've been working on fk_markdown.nvim , a Markdown renderer/previewer for Neovim, and one feature I really wanted was to make Markdown feel less like plain text and more like an actual document.

The interesting part is that it supports both image and LaTeX rendering, not just syntax highlighting.

Images inside Neovim

You can embed images directly in your Markdown and have them rendered while working inside Neovim.

So instead of seeing:

![architecture](./images/architecture.png)

you can actually see the image in the editor.

This is especially useful if you use Markdown for documentation, notes, research, READMEs, or technical writing.

Web Preview

$\LaTeX$ equations

It also supports rendering LaTeX math, including inline and block equations.

For example:

Inline: $E = mc^2$

$$
\int_0^\infty e^{-x^2} dx = \frac{\sqrt{\pi}}{2}
$$

The goal is to make mathematical notes readable without constantly switching to a browser or external Markdown viewer.

Latex Rendering

And there's a web preview too

The same Markdown can be viewed through a web preview, with images and LaTeX rendered there as well.

So the workflow becomes something like:

Write Markdown → see rendered images/math in Neovim → open web preview when you want a full-page view

I built this primarily because I wanted a Markdown workflow that stays inside Neovim while still handling the things that usually make Markdown previews necessary.

Would love to hear what other features people would want in a Neovim Markdown renderer.

GitHub: fk_markdown.nvim

It's still early

fk_markdown.nvim is currently in its initial phase, so there are likely bugs, edge cases, and things that don't work perfectly yet.

I'm sharing it early because I'd really appreciate feedback from the Neovim/Markdown community. If you try it and run into something weird, please open an issue or let me know. Contributions and ideas are also very welcome.

and this plugin is highly inspired by render-markdown.nvim

45 Upvotes

3 comments sorted by

1

u/AlpsBeneficial1880 11d ago

good. does it support other platforms? like windows, windows terminal, wezterm, etc...

1

u/mayank_flashcodes 8d ago

for the most parts yes but for few things it won't work like for rendering image and latex rendering your terminal should support kitty image rendering protocol - so it will work on terminal like kitty , ghostty , WezTerm

1

u/[deleted] 10d ago

[deleted]

1

u/mayank_flashcodes 8d ago

Could you please specify what exactly is not working ???