Markdown preview pane disappeared

Normal behavior: when I open *.md files Goland showed split view with markdown code on the left and preview pane on the right. But recently Goland began to show only markdown code without preview pane.

I checked settings, they are correct:
Languages & Frameworks  >  Markdown
Default layout: Editor and Preview

What I tried to fix the issue:
- restart IDE
- restart computer
- split view
- disable and enable markdown plugin
- switched Default layout to Editor and then back to Editor and Preview

nothing of abovementioned attempts helped.

MacOS Sequoia, Macbook M1
GoLand 2025.1
Build #GO-251.23774.430

Would appreciate any guidance or suggestions for resolving this issue.

Thanks,

Dmitrii

0
Hi Dmitrii,

Thank you for the report. To help us understand the issue better, could you please share a screenshot of the editor with an open *.md file? You might also find it helpful to invalidate your caches: https://www.jetbrains.com/help/go/invalidate-caches.html
0

Hi, Svetlana. Thank you for your prompt reply!

I tried invalidating caches - no effect.

Here is a screenshot with README.md opened. Goland shows only source code. Previously I would see split view with markdown code on the left and preview on the right.

0

Dmitrypkh Thank you for the screenshot! It looks like your .md file is currently set to the Go Template file type (possibly due to an issue with file type auto-detection). To fix this, could you please:

  1. Right-click on the file in the Project View
  2. Select “Override file type”
  3. Choose “Markdown” from the list
  4. Then, close and reopen the file in the IDE

Here is the screenshot of what the context menu would look like:

 

Let me know if that works. 

0

Thanks! It worked. 

The only issue - this approach requires to manually override file type for each *.md file.

I want Goland to treat any *.md file as Markdown.  Some extra steps helped me to achieve that. Maybe it will also help users who will face the same issue who want any *.md file to be treated as markdown:

Navigate to File > Settings > Editor > File Types

Search for "Go template files" and remove *.md extension
Then search for Markdown and add *.md there

Click Apply

 

2

请先登录再写评论。