Can't return to Markdown File from Preview mode

Problem description:
I have the option to preview my markdown file by clicking the Eye icon in the tab header.

Screenshot 2023-09-06 at 11.13.30 AM

After opening the markdown file in preview mode, There is no option to go back.

Screenshot 2023-09-06 at 11.14.25 AM

I can click the link “” but that opens the file in a new tab. This wasn’t an obvious option to me.

Expected behavior:
I should have a button to toggle Preview and Edit mode without excessive layout shifts

Steps to reproduce:

  1. Create a markdown file
  2. Click the “Eye” icon in the tab header
  3. No option/icon in the tab to return to editing the markdown file

Bug appears at this link:
Repro steps confirmed in any Repl

Browser: Chrome (Used desktop app)
Device (Android, iOS, n/a leave blank): Macbook Pro 14" Ventura
Plan (Free, Hacker, Pro Plan): Pro Plan


Hey @IroncladDev!

Do you know if the expected behavior was the case before and we changed this, or is this feedback / a feature request?


IIRC, It opened in a different tab, and had an “eye” icon to close it as well.


Fair point. I’ll let the team know.

There is a “Close Markdown” option in the dropdown btw.


It’s been a while, so I’m not sure I can recall exactly.

A while back, markdown preview tabs would automatically open when you had a markdown file.

I guess this can be categorized as a feature request.

1 Like

I believe that’s the default option to close the tab. I’m trying to find a way to navigate back to the markdown file.

1 Like

We shipped a fix for this!
CleanShot 2023-09-13 at 10.21.53@2x
An edit button now appears on markdown files.

Awesome!!! Thanks a lot, this is definitely gonna improve the markdown experience on Replit!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.