LaTeX \mbox not correctly displayed in Publish

Steps to reproduce

Use mbox in an equation, e.g.:

$\mbox{softmax}(\frac{QK^T}{\sqrt{d_k}})V$

Did you follow the troubleshooting guide?

Yes

Expected result

Rendering like in LaTeX or Obsidian itself:

Screenshot 2024-06-29 at 11.57.16

Actual result

Rendered in Publish as:

Screenshot 2024-06-29 at 11.58.11

Notice that the letters in softmax are rendered as math symbols (squiggly), whereas they should be rendered as normal text.

(I also tried the amsmath \text command, but it has the same issue.)

Environment

SYSTEM INFO:
Obsidian version: v1.6.5
Installer version: v1.5.12
Operating system: Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 23.5.0
Login status: logged in
Catalyst license: insider
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none

which browser are you using?

does it happen in chrome?

does it happen here?

Safari 17.5.0 on macOS 14.5.

It renders correctly in Chrome.

No, on the MathJax demo page it seems to render correctly in Safari:

Screenshot 2024-07-06 at 10.37.57