Unable to render Mermaid in Obsidian mobile

Steps to reproduce

Opening a note containing Mermaid in Obsidian mobile. I have closed all plugin,but It still cannot render Mermaid diagram.Error message:

Error parsing Mermaid diagram!

mermaid is not defined

Environment

Andoird Obsidian 1.6.7

Unfortunately, this bug isn’t new and was already present on obsidian mobile version 1.6 or minor, cant remember anymore.

Probably most users don’t use much the mobile version of obsidian in combination with mermaid diagrams so nobody noticed.
Pity, because mermaid diagrams on obsidian mobile used to work great together.

It works fine for me

Can you post exactly which mermaid diagram are you using?

Does it not work in a new empty vault?

What is your phone, android version, and android webview version?

graph TB;
id1{LoremIpsum}-->id2(LoremIpsum)
id2-->id3(Lorem)
id2-->id4(Ipsum)
id2-->id5(Abc)
id5-->id6a(Lorem & Ipsum)
id5-->id6b(Abc Loremipsum)
id5-->id7(Lorem)
id7-->id8(Lorem & Ipsum)
id7-->id9(Ipsum)
id9-->id10(LoremIpsum abc LoremIpsum)
id9-->id11(LoremIpsum)
id11-->id12(Lorem ipsum)
id11-->id13(Lorem abc ipsum)

Android: 11
Webview: 97.0.4692.98
Plugins: deactivated (safe mode)
CSS snippets: deactivated
Theme: default obsidian theme
Obsidian version: 1.6.7

Works for me.

That webview version is very old. Try to update it.

Confirmed. With Webview updated, mermaid works again. Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.