terrylinooo / githuber-md

Markdown editor plugin for WordPress.
GNU General Public License v3.0
616 stars 89 forks source link

Rendering of mermaid diagrams does not happen #379

Open anolting opened 2 months ago

anolting commented 2 months ago

Any issue will be ignored if you don't provide the following detailed information.

Describe the bug

I have in installed the WP GITUBER plugin and started to create a now post. When I format the text area in which I would like to enter the mermaid code as code block, then on right side of the editor is only the mermaid code repeated and below, where the rendering should be shown, is nothing to see.

I have disabled all plugins I use which will porbably modfify the entered text in the editor. The plugins I have disabled are: Block Visibility Code Block Pro Create Block Theme Customizer Export/Import Easy SVG Support SimpleTOC - Inhaltsverzeichnis Block

To reproduce

Steps to reproduce the behavior:

  1. Create a new Post
  2. click on Code Block and select Other language as syntax highlighting
  3. add the following mermaid example code:

mermaid flowchart TD A[Christmas] -->|Get money| B(Go shopping) B --> C{Let me think} C -->|One| D[Laptop] C -->|Two| E[iPhone] C -->|Three| F[fa:fa-car Car]

  1. See error

Expected behavior

the code to be render as graphic.

Screenshots

grafik

Server environment

Additional context

anolting commented 2 months ago

my apologies, I forgot to point to the right mermaid installation.

anolting commented 2 months ago

apologies again, but I forgot to disable your wp-mermaid plugin which had rendered the imgae instead of githuber-md. so I have to reopen this issue as this plugin does not add mermaid as block.

github-actions[bot] commented 1 week ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 2 days.

anolting commented 1 week ago

Is this project still alive?