Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
The preview appears to be eating the first and last dollarsigns in double dollarsigned expressions hence causing displaystyle expressions to be ignored, e.g. see here
Example: The following equation is enclosed as $$…$$ and therefore centered in the actual answer.
But in preview it is left-justified.