Pycharm Markdown Preview displays CSS code instead of rendered content

Answered

The PyCharm (or another JetBrains IDE with the Markdown plugin) Markdown Preview pane is failing to render the markdown content of a .md file. Instead of displaying the formatted text, it shows raw CSS styling code. This occurs consistently whenever a markdown file is opened and the preview pane is visible.

The CSS code displayed appears to be from the preview's own internal styling rules, specifically for a context menu and info box. The preview is completely unusable as a result.

I run PyCharm 2025.2 (252.23892.439) on Windows 11.

I would be very grateful for any help!

 

 

1
4 comments

Similar case here.

Both 2025.2 community and normal versions - preview pane not functioning on Ubuntu 24 - showing blank.  

0

Please create a new bug report on YouTrack and make sure to provide the IDE logs from Help | Collect Logs and Diagnostic Data

0

PyCharm 2025.2.3 Bug Fix: Browser Rendering Issues

I'm using PyCharm 2025.2.3, and this bug affects not only Markdown but also plugins and other tools that use browser-based HTML/CSS for rendering.

After analyzing my logs following Collect Logs and Diagnostic Data, I found two solutions:

Solution 1: Markdown-Specific Fix (Per Project)

This will resolve the issue only for Markdown, and you'll need to apply it to each project until the bug is officially fixed:

  1. Navigate to File > Settings > Languages & Frameworks | Markdown
  2. Switch the Preview rendering engine from Chromium browser to Compose (experimental)

Solution 2: Enable JCEF in Registry (Global Fix)

  1. Press Shift twice to open Search Everywhere
  2. Type Registry
  3. Search for ide.browser.jcef.out-of-process.enabled and enable it
  4. Restart the IDE
1

Hi Iliyabrook1987, this seems to be related to JBR-9462. You can vote for the issue to receive updates on its resolution.

0

Please sign in to leave a comment.