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

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

I can click the link “README.md” 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:
- Create a markdown file
- Click the “Eye” icon in the tab header
- 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)
OS: MacOS
Device (Android, iOS, n/a leave blank): Macbook Pro 14" Ventura
Plan (Free, Hacker, Pro Plan): Pro Plan
5 Likes
Hey @IroncladDev!
Do you know if the expected behavior was the case before and we changed this, or is this feedback / a feature request?
2 Likes
IIRC, It opened in a different tab, and had an “eye” icon to close it as well.
2 Likes
jesse
4
Fair point. I’ll let the team know.
There is a “Close Markdown” option in the dropdown btw.
3 Likes
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
jesse
7
We shipped a fix for this!

An edit button now appears on markdown files.
Awesome!!! Thanks a lot, this is definitely gonna improve the markdown experience on Replit!
3 Likes
system
Closed
9
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.