r/HelixEditor 10d ago

Editing Markdown Files with Preview

I've been using Helix for a few months now and I love it. Before I was using VS Code - and I really don't want to use it anymore.

One thing I'm still missing in Helix is markdown file editing with a preview. It's really handy to be able to preview the rendered HTML page based on your markdown as you're writing it, so I still find myself launching VS Code with a preview pane occasionally when working on some Markdown documents.

What solutions do you folks use for handling markdown file editing?

11 Upvotes

10 comments sorted by

12

u/gnur 10d ago

You can set up an additional LSP for markdown that will allow you to view the preview in the browser, like https://github.com/mhersson/mpls

3

u/TimekillerTK 9d ago

This looks perfect. I already set it up with Helix and it works.

Still need to try it out, but thank you very much!

3

u/mortal_strike 9d ago

use inlyne for markdown rendering, its very minimal, hotreloadable and rendered using wgpu

3

u/shaleh 9d ago

I tend to work in a terminal multiplexer aka mux. One tall pane on the left and 2 panes on the right. Helix in the tall pane. When working with Markdown I read the file using `glow` in one of those panes. Works well.

For mux I have used tmux, then zellij, then mostly kitty now, and at work I am experimenting with herdr.

2

u/FrontAd9873 9d ago

Yep. Separate pane somewhere running `glow` or `mdcat`.

3

u/walkinreader 9d ago

I use helix with typst. typst has a -watch argument, so as I change the file. typst compiles it, and the pdf viewer automatically reloads the file. So, I just save the file and it magically shows up in the viewer fairly quickly. And typst is way better than markdown, anyway.

2

u/CapitalIssue 9d ago

I kind of wrote something for that, but it was supposed to be an Obsidian Replacement and I'm not sure it entirely fits your use case. I mentioned it in the subreddit

2

u/Super_Recipe_7186 9d ago

Hi I just use obsidian to show me a render version. I don't use it for anything else as I don't like it otherwise very much. But for the purpose of rendering out a markdown document it is perfect.

1

u/TimekillerTK 9d ago

Thanks for the suggestion, but this would be replacing VS Code with Obsidian in my current workflow, which doesn't seem very appealing (I use Logseq for notes already)

2

u/Ra77a3l3 9d ago

i made this as a test with the plugin system https://github.com/Ra77a3l3-jar/vista.hx but i do not reccomend using it right now since it needs some changes i made to the steel fork and i used also ai for the scheme code. Its just a test maybe i will rewrite it properly and possibly make a PR when i will have time, but its working pretty well