If there are interline formulas ($$...$$), the outline will not be fully displayed

For block math we only support:

text
$$math$$
text

text
$$
math
$$
text