Why does python syntax color does not work in read mode

Steps to reproduce

  1. Create a python code block.
  2. Switch from editing mode to reading mode.

Expected result

image

Actual result when switched to read mode

image

Environment

SYSTEM INFO:
Obsidian version: v1.8.4
Installer version: v1.6.7
Operating system: #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) 6.1.0-28-amd64
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: off
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 41
Plugins enabled: 0

RECOMMENDATIONS:
none

Keep in mind that:

Screenshot 2025-02-14 122641

https://help.obsidian.md/Editing+and+formatting/Basic+formatting+syntax#Code

This is what I see using Obsidian v1.8.6 (in catalyst testing now):


Can you try in the Sandbox vault to see what it looks like there?

Yes, in sandbox vault it looks fine.

It looks fine my vault as well now.
textgenerator plugin was causing this behavior even after I disabled all the plugins.

I tried it again, but I closed obsidian and opened it again, and it works normally.

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