# Math blocks cannot be parsed correctly when a color is inserted at the beginning; previous versions could parse them correctly

**URL:** <https://forum.obsidian.md/t/math-blocks-cannot-be-parsed-correctly-when-a-color-is-inserted-at-the-beginning-previous-versions-could-parse-them-correctly/119588>\
**Category:** Bug graveyard\
**Created:** [October 19, 2026, 4:32am UTC](https://forum.obsidian.md/t/math-blocks-cannot-be-parsed-correctly-when-a-color-is-inserted-at-the-beginning-previous-versions-could-parse-them-correctly/119588 "2026-10-19T04:32:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nongzhenyu](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/n/cdc98d/32.png) [@nongzhenyu](https://forum.obsidian.md/u/nongzhenyu)\
**Post date:** [October 19, 2026, 4:32am UTC](https://forum.obsidian.md/t/math-blocks-cannot-be-parsed-correctly-when-a-color-is-inserted-at-the-beginning-previous-versions-could-parse-them-correctly/119588/1 "2026-10-19T04:32:21Z")

</div>

### Steps to reproduce

math blocks  
$$  
\color{#F8A}  
\begin{flalign}  
&a+b=c &\  
\end{flalign}  
$$

### Expected result

Previous versions were able to parse normally.

### Actual result

Parsing error in the current version

### Environment

SYSTEM INFO:  
Obsidian version: 1.14.4  
Installer version: 1.14.4  
Operating system: Windows 11 Pro 10.0.26200  
Login status: logged in  
Language: zh  
Catalyst license: none  
Insider build toggle: off  
Live preview: on  
Base theme: dark  
Community theme: Obsidian Nord 0.2.0  
Snippets enabled: 1  
Restricted mode: off  
Plugins installed: 7  
Plugins enabled: 7  
1: PlantUML v1.9.0  
2: Importer v3.1.15  
3: Obsidian Functionplot v1.2.1  
4: Highlightr v1.2.2  
5: Excalidraw v2.29.0  
6: Editing Toolbar v4.1.10  
7: Excalidraw Extras v0.1.2  
RECOMMENDATIONS:  
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.  
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

* * *

### Additional information

 ![image](https://forum.obsidian.md/uploads/default/original/3X/1/e/1e0311a59ef67f02b639e1e11538c14434403fa2.png)

---

<div class="post-metadata">

**Author:** ![dawni](https://forum.obsidian.md/user_avatar/forum.obsidian.md/dawni/32/79261_2.png) [@dawni](https://forum.obsidian.md/u/dawni)\
**Post date:** [October 19, 2026, 5:42am UTC](https://forum.obsidian.md/t/math-blocks-cannot-be-parsed-correctly-when-a-color-is-inserted-at-the-beginning-previous-versions-could-parse-them-correctly/119588/2 "2026-10-19T05:42:36Z")

</div>

You may have characterized it differently than its behavior. In current Obsidian, you can begin a block with color:

```auto
$$
{\color{red} x + y}
$$

```

`\color` has been a switch for some time now. You’re not supposed to be able to use it like a macro, as you appear to be doing in the screenshot. You’re missing a set of curly brackets either way, in one of two places depending.

If Obsidian rendered it recently, that might be because Obsidian was on an older version of MathJax until this update.

I’m thinking MathJax doesn’t support using a switch around an entire align environment anyway. So even with the correct syntax, you might now have to color rows or cells. (That’s not say there isn’t an easier way; I’m rusty on MathJax.)

But this plays out in Obsidian the way I think color is supposed to:

```auto
$$
\begin{align}
{\color{#F8A} a+b}&=c \\
d&={\color{#A8F} e+f}
\end{align}
$$

```

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [October 19, 2026, 4:03pm UTC](https://forum.obsidian.md/t/math-blocks-cannot-be-parsed-correctly-when-a-color-is-inserted-at-the-beginning-previous-versions-could-parse-them-correctly/119588/3 "2026-10-19T16:03:14Z")

</div>

This is not a bug. What you wrote is not valid latex. dawni answer is correct.
