Steps to reproduce
- Create a new note.
- Switch to Preview view.
- Insert a fenced code block.
- Type this line inside the code block:
# This is a comment
Did you read and follow the Troubleshooting Guide? Yes
Expected result
The # line should remain inside the code block and should not be interpreted as a Markdown heading.
Actual result
The # line inside the code block is incorrectly interpreted as a heading.
Environment
- Obsidian version: 1.13.4
- Operating system: macOS
- View: Preview view (Reading view)
Additional information
This appears related to the previously reported issue: Hashes (#) in python code blocks parsed as headings