Conversation
supportOn fresh copy of WordPress with standard theme when I try and add MerPress block I get Syntax Error. Unchecked runtime.lastError: The message port closed before a response was received. 2 index.js?ver=3ac04bb…:1 UnknownDiagramError: No diagram type detected matching given configuration for text: at detectType (mermaid.min.js:7:74) at Diagram.fromText (mermaid.min.js:2266:10414) at getDiagramFromText (mermaid.min.js:2274:2575) at Object.parse (mermaid.min.js:2268:1412) at mermaid.min.js:2274:5328 at new Promise (<anonymous>) at performCall (mermaid.min.js:2274:5305) at executeQueue (mermaid.min.js:2274:5182) at mermaid.min.js:2274:5449 at new Promise (<anonymous>) (anonymous) @
View post on imgur.com View post on imgur.com
That’s a good catch. An empty diagram gives a syntax error. You should be able to still enter a valid diagram though? Here’s a test I ran on the playground instance: [video src="https://videos.files.wordpress.com/94c7PW1B/kapture-2025-01-04-at-20.43.42.mp4" /] Do you think there should be an exception for empty diagrams? Maybe some placeholder to identify what needs to happen next? This reply was modified 1 year, 4 months ago by neffff . This reply was modified 1 year, 4 months ago by neffff .
View post on imgur.com View post on imgur.com
That’s a good catch. An empty diagram gives a syntax error. You should be able to still enter a valid diagram though? Here’s a test I ran on the playground instance: [video src="https://videos.files.wordpress.com/94c7PW1B/kapture-2025-01-04-at-20.43.42.mp4" /] Do you think there should be an exception for empty diagrams? Maybe some placeholder to identify what needs to happen next? This reply was modified 1 year, 4 months ago by neffff . This reply was modified 1 year, 4 months ago by neffff .