### Bug description

System: Debian 11

RStudio: RStudio 2022.12.0+353 "Elsbeth Geranium". All packages up to date, using default quarto version (could not check version)

In quarto book, equations such as:

```
\begin{align*}
a^n &=  a\cdot a \cdot a \cdot \ldots \\ \\
a^n &= p
\end{align*}
```
and

```
$\dfrac{a^n}{a^m} = a^{n - m}$
```

and:

```
$$\bar{x} = \frac{\sum_{x}^{2}  x}{n}$$
```

and:

```
$a^{n \cdot m} = \underbrace{a^n \cdot a^n \cdot a^n \cdot \ldots}_{m}$
```

and:

```
$a^{\overbrace{n + n + n + \ldots}^{m}} = a^{n \cdot m}$
```

Are rendered as plain latex text in epub output. As I've tested, the error occurs when using the enviroments or commands \begin{align}, \begin{align*}, \dfrac{x}{y}, \sum_{x}^{y}, \underbrace and \overbrace. PDF and HTML outputs are not affected by this.

### Checklist

- [ ] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [x] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [x] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [x] Please document the operating system you're running. If on Linux, please provide the specific distribution.
dragonstyle
2023-01-26T16:16:25Z
vfacta
bug
v1.3
closed
Some Latex equations don't render correctly to epub output
https://github.com/quarto-dev/quarto-cli/issues/4111