Steps to reproduce
- In Editor mode, enter the text:
%%hello `world%%` comment continues? %% goodbye
- Note that it is highlighted as if “comment continues?” is part of the comment
- Switch to Reader mode
- Note that “comment continues” is not part of the comment
Did you follow the troubleshooting guide? [Y/N]
Yes, this happens even in restricted mode / without plugins / with the default theme / in the sandbox vault.
Expected result
I expect that %%-style comments will take precedence over inline code blocks, such that code blocks are not interpreted (ie: the behaviour of “Reader” mode)
Actual result
Editor mode and Reader mode are inconsistent in their handling of inline-comments and inline-code within them.
Environment
SYSTEM INFO:
Obsidian version: v1.6.7
Installer version: v1.6.7
Operating system: #40~22.04.3-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 30 17:30:19 UTC 2 6.8.0-40-generic
Login status: logged in
Catalyst license: none
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none
Additional information
My personal preference would be for inline comments to take precedence, but the main issue I have is with the inconsistency