Update After having several issues with emacs, I have switched back to vim for editing md files, which I think is an overall much nicer experience even though it doesn't render images inline (yet...).
To improve the image workflow I use the md-img-paste plugin and a custom command to open images when clicking them (you could also use
gx for the default fileviewer):
" cd is needed for feh to reload the filelist correctly
nnoremap <leader>I :!cd <cfile>:p:h && feh --scale-down --reload 5 --no-jump-on-resort --start-at <cfile>:t &<CR><CR>
I have a few other flags also and use i3 to stack it above my vim window, but they are not technically needed.
Original emacs post:
I would never have guessed it at the time I posted this question, but the most suitable editor for my purposes seems to be... Emacs! I recently started using Emacs to try out the feature-filled org-mode for note taking. It turns out that it has all the features I was looking for!
- Vim bindings are provided via evil-mode, which can be configured separately and is installed by default in the Spacemacs distribution of Emacs (this is what I use, it comes with many nice defaults).
- Pandoc syntax highlighting - Markdown mode enables syntax highlighting for
pandoc markup elements (there is also Pandoc mode, which I have not tried myself). It is possible to define custom export commands and view the output in the built-in Emacs browser. Markdown mode also enables folding of headings similar to
- Inline-images - Images can be viewed inline in both Markdown mode and org-mode, as long as imagemagick is installed and supported by your version of Emacs. The functions used in org-mode can be found here (to be fair, I have had some troubles with inline images in markdown mode, but I haven't looked too much into it since I use org-mode for note taking now).
Other aspects I appreciate of Emacs include the possibility to search among existing functions and keybindings and org-mode's time-keeping and task management features. To be clear, I still use vim for editing files via terminal, but for taking notes I use Emacs with org-mode and it's great!