MeanderingProgrammer / render-markdown.nvim

Plugin to improve viewing Markdown files in Neovim
MIT License
1.37k stars 32 forks source link

Feat: support Quarto docs #119

Closed akthe-at closed 1 month ago

akthe-at commented 1 month ago

Is your feature request related to a problem? Please describe.

I could be oblivious and this is already supported by I feel like this plug-in takes care of all my markdown rendering needs besides quarto markdown files (.qmd).

Describe the solution you'd like

I would love if this plug-in could render these file types!

Describe alternatives you've considered

Using a secondary markdown rendering app like headlines has worked for .qmd files in the past but I'd rather not have double dependencies.

Additional information

No response

MeanderingProgrammer commented 1 month ago

I believe this is the same as: https://github.com/MeanderingProgrammer/render-markdown.nvim/issues/76.

The following seemed to work in that case:

require('render-markdown').setup({
    file_types = { 'markdown', 'quatro' },
})
akthe-at commented 1 month ago

ahhh its looking like this is an issue with lazy loading! I can get it to trigger if i explicitly add cmd = {"RenderMarkdown"} in my config for the plugin. I am investigating further to figure out why this won't auto enable when opening a quarto document now...will report back here so others may figure this out if they struggle like myself....PS i should have searched the issues better...I don't know why I got lazy this time.

akthe-at commented 1 month ago

Adding event = "LazyFile" to my lazy config for this plugin and keeping the rest of the regular config items related to cmd and file_types solved this issue for me!

MeanderingProgrammer commented 1 month ago

Yeah, I can see lazy loading having some potential edge cases. Glad it's working :)