I have modify the md_instant.vim to fixed the problem,
pls check
vim.command('autocmd CursorMovedI <buffer> call UpdateMarkdown()')
vim.command('autocmd CursorMoved <buffer> call UpdateMarkdown()')
vim.command('autocmd VimLeave <buffer> call CloseMarkdown()')
add for current buffer autocmd