huangcheng / craft-extension-mermaid

A Craft extension to preview Mermaid.js code blocks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use this?

ap1969 opened this issue · comments

Hi,
I'm just switching from Notion to Craft, and one thing I'd like is MermaidJS functionality.

I've installed your plugin - I can see it in the extensions list, but how do I actually use it? I've tried adding a code block, but can't see any way to set the language to Mermaid.

I'm using the Windows app - not sure if that makes a difference?

Regards,
Andy

HI,
The plugin has been successfully tested in the latest version of Craft for Windows, and it still works perfectly.

The code block can be rendered by simply selecting it with your cursor and clicking on the button right next to it. This is because Craft has made changes to their code editor, and this might be the easiest way to select the whole code block.

image

image