Hey, thanks for the detailed report. I followed the steps and this is a known bug. It’s related to how the WYSIWYG markdown editor tracks the dirty state when switching between Preview and Source, and after that the tab can’t close correctly.
I reported it internally. A fix is in progress, but I can’t share an exact ETA yet. As a workaround, you can use your method and restart the window, or edit markdown only in Source view and don’t switch to Preview while you have unsaved changes.
If we have an update on the fix, we’ll post it here.
After an extra review, we deprioritized this specific bug with the Tab key in Markdown Preview, so there’s no fix planned right now. The workarounds from the previous message still apply: restart the window, or edit the Markdown in Source view without switching to Preview when you have unsaved changes.
If you hit this on a newer version of Cursor, please start a new thread with up-to-date details and we’ll take another look.