$$__$$ can't work correctly in the zettlr, I have no idea about it.
Because double-dollar-signs mark block-equations (you need to put them on their respective lines). To create inline-formulas, use single-dollar-signs instead. Example:
This is a line with an inline-equation $x+y=z$ at some point.
This is a normal line. Here comes a multiline-equation: