Title: Syntax Error on front end
Last modified: May 23, 2023

---

# Syntax Error on front end

 *  [victorkane](https://wordpress.org/support/users/victorkane/)
 * (@victorkane)
 * [3 years ago](https://wordpress.org/support/topic/syntax-error-on-front-end/)
 * Using latest WordPress 6.2.2, I installed the WP Mermaid plugin, then went to
   a post, added the WP Mermaid block at the end of the post, added to the editable
   part the following simple mermaid syntax:
 * `graph TD
   A-->B;A-->C;B-->D;C-->D;
 * It rendered in the Editor fine.
 * I saved the post by clicking on update and then clicked on “View Post”. The result
   was a typical Mermaid “Syntax error in graphmermaid version 9.4.3” with the Bomb
   icon. Following error in the browser console:
 * Firefox:
 * `Uncaught ReferenceError: jQuery is not defined
   https://wp-62-blank-theme-design-
   style-guide.local/hello-world/:281
 * Edge, Chrome:
 * jQuery is not defined
   at (index):265:402
 * When I edited the page, instead of the Mermaid rendering, the Mermaid syntax 
   had been reduced to a single line. I clicked on the block, and the mermaid syntax
   returned to its edited format, but with a blank line inserted on the initial 
   line. I erased that line, and the Mermaid diagram rendered; but viewing produced
   the same results, as did saving the post and re-editing.
 * Thanks for updating this plugin!

The topic ‘Syntax Error on front end’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-mermaid_e5e5e4.svg)
 * [WP Mermaid](https://wordpress.org/plugins/wp-mermaid/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mermaid/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mermaid/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mermaid/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mermaid/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mermaid/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [victorkane](https://wordpress.org/support/users/victorkane/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/syntax-error-on-front-end/)
 * Status: not resolved