Reading mode: Empty (no space) comment %%%% is not detected properly. Causes following text to be commented out

Steps to reproduce

Have a note with headings. Inside write a comment with no content %%%%.

# Heading 1
%%%%
# Heading 2

Did you follow the troubleshooting guide? [Y/N]

Yes

Expected result

Show all headings in the TOC.

Actual result

The headings below the comment won’t appear in the table of contents view.

Environment

SYSTEM INFO:
Obsidian version: 1.12.7
Installer version: 1.12.7
Operating system: #1 SMP PREEMPT_DYNAMIC Thu, 26 Mar 2026 19:20:28 +0000 6.19.10-arch1-1
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


Additional information

Tested in sandbox, vanilla and with plugins (screenshot) with same results.

Thanks. It reading mode that doesn’t work well at all in that case.

Renamed for clarity

will be fixed in v1.13.2. ETA unknown.