Preview of markdown file changes to preview of another file

Bug description:
Open a .md file. Click on “Open Preview”. This works fine. It didn’t a few weeks ago, so thanks for fixing that.
After the preview is opened, clicking back on ‘’ to begin coding makes it preview the file instead of keeping the preview of the .md file. After doing this a few times the preview will continue to show.

Expected vs Current Behavior:
After opening a .md preview, it will continue to show even after clicking on a new file.

Steps to reproduce:
Preview a .md file so that it’s opened in a pane. Then open in another pane.

Bug appears at this link:
Every Python program.

Screenshot(s)/Screen Recording:
Initial opening of the preview:

After clicking on

Browser/OS/Device: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36
Chromebooks and Chrome desktop

Replit Profile:

Strange bug. When this happens, try to edit the file you want to preview. It should then automatically preview that one.

Same issue here…

If I open a markdown file to go through a lesson with my students and preview it, as soon as I click on to walk through some code, the markdown preview changes to the code that’s in The only way to get it back is to click on the file and open the preview again. As soon as you click on another file other than, the markdown preview changes.

Quite frustrating…

Please get this fixed…