You wouldn’t have this problem if you were using details block which is the recommended way:
[details="Example"]
$$
x^2 + y^2 = z^2
$$
[/details]
You wouldn’t have this problem if you were using details block which is the recommended way:
[details="Example"]
$$
x^2 + y^2 = z^2
$$
[/details]