With LSP and Marksman [0], those tables get formatted automatically on save for me.
https://github.com/artempyanykh/marksman