Live preview should NOT recognize math block when there blank lines between $$ markers

Steps to reproduce

The following markdown results in “Heading 1” (and any subsequent headings, at any level) not rendering in the outliner):

# Heading 0
a
- b
$$

c
$$
# Heading 1

Expected result

Heading 0 and Heading 1 should appear in the outliner

Actual result

Heading 1 (and any further headings) added to the document do not render.

Environment

  • Operating system:
    Linux (NixOS), native install (not appimage)
  • Debug info:
    SYSTEM INFO:
    Obsidian version: v1.0.3
    Installer version: v1.0.3
    Operating system: #1-NixOS SMP Thu Nov 10 17:15:43 UTC 2022 5.15.78
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: dark
    Community theme: none
    Snippets enabled: 0
    Restricted mode: on

RECOMMENDATIONS:
none


Additional information

outliner is correct. It’s live preview that should not parse that. The reader is correct too.

Ah, I see. In that case this is probably a bug in the WYSIWYG editor mode as that disagrees with the reader and outliner.

yes, it is.