Delete trailing whitespace

Hi!

I'd want to have a feature that will delete trailing whitespace in the end of all notes either automatically or by pressing on a button or at least in one selected note.

I've been trying to use Neovim's command for this in Vim mode but it just doesn't work!

That would be a nice feature to have. Have you tried using the Markdown Prettier plugin as a workaround?

This plugin doesn't work for some reason on my desktop Joplin 3.1.8 on Linux (app image). Maybe there are some dependencies but I don't see it on plugin page.

Please try again with Joplin 3.1.15 or later — see Desktop: Update plugin compatibility layer to allow more legacy plugins (e.g. Markdown Prettier) to run by personalizedrefrigerator · Pull Request #11033 · laurent22/joplin · GitHub.