Steps to reproduce
-
Paste this into a note. The closing fence has one space before it:
``` code ``` # Heading Paragraph with a [[link]] and a #tag. -
Look at it in Live Preview and Source mode, then in Reading view.
Did you follow the troubleshooting guide?
Yes (reproduced in the sandbox vault, no community plugins).
Expected result
The code block ends at ```, as Reading view shows and as CommonMark allows for a closing fence indented by up to three spaces: then come a heading and a paragraph with a working link and tag.
Actual result
The editor does not take ``` as the closing fence. The code block runs to the end of the note, so # Heading and the last paragraph are code block lines, with [[link]] and #tag as raw text.
Reading view closes the block and shows a normal heading and paragraph, and the metadata cache has the heading, the link and the tag.
Environment
SYSTEM INFO:
Obsidian version: 1.15.0
Installer version: 1.14.4
Operating system: Windows 11 Pro 10.0.26300
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none
Sandbox vault, no community plugins, default theme and settings.
Additional information
When the opening fence has the same indentation as the closer (two spaces before both, for example), both views close the block. Only a closer indented more than its opener is closed in Reading view but not in the editor.