This is highly a personal plugin.
import this
Install with plug.
Plug 'waylonwalker/mdformat.nvim'
Require it in your init.vim
to use it.
lua require'mdformat'
:TSInstall markdown
" alternatively install all of them
:TSInstall all
make sure that you don't have any treesitter errors.
:checkhealth nvim-treesitter