Mermaid rendering ignore UpdateElementStyle

Steps to reproduce

Create a block like the following:

C4Context
	title Example
	System(object, "Sample object")
	UpdateElementStyle(object, $fontColor="white", $bgColor="lightgrey")

Did you follow the troubleshooting guide? [Y/N]

Yes

Expected result

Text of the diagram should become “white”.

Actual result

Text shows in the default colour.

Environment

SYSTEM INFO:
Obsidian version: v1.3.5
Installer version: v1.3.4
Operating system: Darwin Kernel Version 22.5.0: Mon Apr 24 20:53:44 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T8103 22.5.0
Login status: logged in
Catalyst license: none
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: light
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

It doesn’t work locally nor in the published version on a site.

Well, mermaid diagrams aren’t top priority and “just” an implementation of https://mermaid.js.org/.

In the meantime, we need to wait patiently for an updated version of mermaid diagrams in Obsidian. Also in my opinion, Mermaid diagrams should get more priority over other features.

May be related to:

and

will be possible in v1.15. ETA unknown