# in code blocks parsed as headings (v1.13.4)

Steps to reproduce

  1. Create a new note.
  2. Switch to Preview view.
  3. Insert a fenced code block.
  4. 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