Hacker News new | ask | show | jobs
by buf 2076 days ago
I prefer to do this directly in vim with Goyo: https://github.com/junegunn/goyo.vim
2 comments

Vim can't highlight Markdown correctly because it does highlighting via regexps. For correct parsing and thus for correct highlighting of Markdown you need a real parser. See e.g. this:

https://github.com/tpope/vim-markdown/issues/4

Is this limitation of most general code editors? Has neovim fixed this?
Neovim has an experimental language parser which is still in its early days, but might just help:

https://github.com/nvim-treesitter/nvim-treesitter

Specifically, for Markdown: https://github.com/ikatyang/tree-sitter-markdown

Neovim will have treesitter in the next major release, so yes probably.
Yup, same. Excellent plugin.