I have tried some ways to input LaTeX formulas in quote blocks but all of them have some bugs…

The formula for testing:

```
$$
\mathrm{e}^{i\theta} = \cos \theta+i\sin \theta
$$
```

- method 1:

```
> $$
> \mathrm{e}^{i\theta} = \cos \theta+i\sin \theta
> $$
```

incorrectly rendering in Live Preview mode (shown in the figure below), but works well in reading mode:

- method 2

```
> $$
\mathrm{e}^{i\theta} = \cos \theta+i\sin \theta
$$
Lorem Ipsum ...
```

rendering the next line as math incorrectly in reading mode:

- method 3

write them in one line:

```
> $$\mathrm{e}^{i\theta} = \cos \theta+i\sin \theta$$
```

Now it was correctly rendered, but not so convenient for writing if the formula is too long…

So is there a better method to write LaTeX formula in quote blocks?

Thanks in advance