Mermaid graphs not rendering at all on iOS

Steps to reproduce

  1. Install latest version of Obsidian on iOS.
  2. Create an empty new file and put in any mermaid diagram. For demonstration purposes, an empty one (ticks with “mermaid” and nothing else) works.
  3. Enable the reading view.

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

Y

Expected result

I’d like to see the mermaid graph being rendered.

Actual result

One of the following always happens: (1) I see a blank diagram; (2) I see syntax highlighted source code of the mermaid diagram; (3) I see the error message “Error parsing Mermaid diagram! Can’t find variable: mermaid”.

Environment

SYSTEM INFO:
Operating system: ios 16.1.1 (Apple iPad14,4)
Obsidian version: 1.9.14 (241)
API version: v1.9.14
Login status: not logged in
Language: en
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 1
Plugins enabled: 1
1: Git v2.35.1


Additional information

I was able to find and test a few older versions of iOS Obsidian. The last version I can find that works is 1.7.7. The first version I can find that has this bug is 1.8.3.

By this I mean that I see a blank diagram even if the diagram source code is not empty.