Steps to reproduce
-
Paste this into a note:
Use ```js to open a JavaScript block. # 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 ``` after Use opens no code block, because it is not at the start of the line, and nothing on the line closes it, so it stays literal text, as Reading view shows: a paragraph with the three backticks, a heading, and a paragraph with a working link and tag.
Actual result
The editor reads the ``` as the start of an inline code span. No empty line or block ends that span, so it runs to the end of the note:
- The rest of the first line is styled as code.
# Headingis still a heading, but in the code font.- In the last paragraph,
[[link]]and#tagare raw text in the code font: no link and no tag to click.
Reading view shows the three backticks as text, a normal heading and a normal paragraph. 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
The same happens with any run of three or more backticks that is left unclosed after other text on a line. A run of one or two backticks left unclosed is styled only up to the end of its own line.