When viewing a Bookdown book in the Safari browser, sometime a line break wrongly appears directly before inline math. The place I most often notice this is in second-or-later paragraphs within theorem-like environments.
Here's an example:
---
site: bookdown::bookdown_site
output: bookdown::gitbook
---
```{theorem}
We have $a$ and $b$ and $c$.
We also have $d$ and $e$ and $f$.
```
In Chrome this looks as it should, but in Safari, some line breaks appear where they shouldn't: