logseq-fenced-code-plus icon indicating copy to clipboard operation
logseq-fenced-code-plus copied to clipboard

Block Render Error when trying to render mermaid diagram

Open priisholm opened this issue 1 year ago • 2 comments

Hi,

After installing the plugin, I tried to render a simple diagram:

graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;

However, in logseq, it is shown as such:

image

Error copied from the console:

TypeError: c.mermaid.init is not a function
    at mermaid.tsx:47:20
    at Tj (react-dom.production.min.js:179:399)
    at unstable_runWithPriority (react.production.min.js:24:26)
    at Za (react-dom.production.min.js:73:8)
    at Ra (react-dom.production.min.js:178:368)
    at gf (react-dom.production.min.js:161:497)
    at react-dom.production.min.js:73:230
    at unstable_runWithPriority (react.production.min.js:24:26)
    at Za (react-dom.production.min.js:73:8)
    at $g (react-dom.production.min.js:73:176)

Fenced code plus version: 0.0.7

LogSeq version: 0.10.5 (c4341c1)

Best, Kenneth

priisholm avatar Jan 31 '24 08:01 priisholm

Hi @priisholm Could you try the latest version (0.0.9) for this issue?

xyhp915 avatar Feb 14 '24 09:02 xyhp915

Hi @priisholm Could you try the latest version (0.0.9) for this issue?

image

I also get the same error with 0.0.9 of the plugin and 0.10.6 of logseq.

image image

Also the same error from the console

image

taweili avatar Feb 25 '24 10:02 taweili