Mermaid docs say: https://mermaid-js.github.io/mermaid/#/n00b-syntaxReference The word "End" can cause Flowcharts and Sequence diagrams to break ==> Wrap them in quotation marks to prevent breakage.