Steps to reproduce
Write a mathematical formula wrapped in $ signs, where plain text is followed by mathematical symbols, for example:
$$
\text{pure text} 1+1=2
$$
will lead to…

Here is a complete code example for test. Please refer to the image below for the specific effect.
This error occurs in preview mode and reading mode.
### 1 math block
$$
\text{pure text} 1+1=2
$$
---
### 2 inline math
$\text{pure text} 1+1=2$
---
### 3 other info
$$
\text{pure text}
$$
---
### 4 other info
$$
1+1=2
$$
Did you follow the troubleshooting guide? [Y/N]
Y
Expected result
The plain text part of the formula and the content of the formula shouldn’t overlap.
Actual result
The plain text part of the formula and the content of the formula will overlap.
Environment
SYSTEM INFO:
Obsidian version: v1.9.6
Installer version: v1.8.10
Operating system: Darwin Kernel Version 25.0.0: Fri Jul 11 23:59:41 PDT 2025; root:xnu-12377.0.154.0.2~26/RELEASE_ARM64_T8122 25.0.0
Login status: logged in
Language: en
Catalyst license: insider
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none
