Replies: 2 comments 5 replies
-
Not sure if it fits here. There are already countless options to convert markdown to html (pandoc being the first that comes to my mind). I think we should try to limit ourselves to note making/editing in nvim and let other plugins/external do other stuff. Could you detail a bit more your workflow or what you have in mind? |
Beta Was this translation helpful? Give feedback.
-
I think this would be great for some use cases, particularly where content might be published online. Some of my vaults are personal, but some of mine could be shared with relevant groups, and automated export would be very useful for maintaining current copies in formats other than the one I prefer to work in. I'm considering trying to implement something like this using pandoc. Ideally, it would be enabled and disabled on a per-vault basis, probably defaulted to off, and you could preset all the configurations like where to put the exports, what file type(s) you want to export to, etc.. It would trigger on writing to the file, exporting to one or more alternative formats and placing them in the appropriate folder(s). Using pandoc has the benefits of outsourcing all the actual conversion work, providing coverage for a wide range of file formats, and allowing users of uncommon file types to define their own conversions in Lua. It would also be relatively easy to tie in since you only need to define and monitor a trigger (write to a file set to export), then execute a system command and monitor a bit of the output for error reporting. I'm enjoying the plugin, and I'd like to learn a bit about neovim plugin dev and Lua, so I'd like to try to implement this. I've been considering this and a few other things that seem small to me, at least, but the rest are best suited for other discussions. |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to add a feature to export a certain note or set of notes to html?
Currently doing this with regex, but would be cool if it was officially supported : )
Beta Was this translation helpful? Give feedback.
All reactions