Math block delimiters breaking headings and links

Having one or both math delimiters in their own line, when the next bit of text is not preceded by a new line breaks following headings and sometimes links.

They still render fine in preview mode but they don’t show up in outline, heading links, and sometimes local graph. It also causes problems when exporting to html.

this issue is similar, but my blocks are not empty.

test.md (521 Bytes)
this is an example with only headings in sandbox vault.

This is easily circumvented by having both delimiters in line with something else, but it can be hard to notice, and may make notes invisible when trying to link to them.