Obsidian inserts unwarrented blank line before display math

The only officially supported display math syntax is

text
$$ x+1 $$
text

or

text
$$ 
x+1 
$$
text

The rest is unsupported and partially undermined at the moment.