Empty Tex block $$$$ breaks heading links below it

heading 1

Typing [[# heading here will find “heading 1”

$$$$

heading 2

typing [[# here will only show “heading 1”.
Basically all links are broken in the sense that they are not reachable in search, nor will they work.

Since empty $$$$ blocks are/seem legal, this is a bug.
The bigger issue is that because $$$$ are invisible, it’s hard to spot what’s causign the problem. I did a binary search through the doc to figure out what’s wrong.