Mermaid Rendering not working for complex markdowns

Summary

This markdown with the mermaid param does not get rendered in the github wiki.. It works perfectly fine in the mermaid live editor. I've removed the mermaid keyword to show the underlying markdown

(Summarize the bug encountered concisely)

Steps to reproduce

Create a md file with this text

sequenceDiagram

participant u as User
participant cp as TPV
participant ep as TPV Receiver
participant cc as TPV Controller
participant jm as Journey Manager

u ->> cp : Blah Blah Blah

opt Direction == 'inbound'
  Note over cp,cc : Blah Blah Blah
  cp -->> ep : Blah Blah Blah

  ep -->> cc  : Blah Blah Blah

  alt Blah Blah Blah
    cc -->> ep : Blah Blah Blah

  else 
    alt Blah Blah Blah
      cc -->> ep : Blah Blah Blah
    else Blah Blah Blah
      cc -->> ep : Blah Blah Blah
      Note over ep,cc : Blah Blah Blah
    end

  end

end 

ep -->> jm : Blah Blah Blah
jm -->> ep : Blah Blah Blah

alt Blah Blah Blah
  ep -->> cp : Blah Blah Blah
  cp ->> u :Blah Blah Blah

else Blah Blah Blah
  ep -->> cp : Blah Blah Blah
  cp ->> u : Blah Blah Blah
  Note over u,ep: TBlah Blah Blah

else Blah Blah Blah
  ep -->> cp : Blah Blah Blah
  cp ->> u : Blah Blah Blah

end

Example Project

This is already part of my repository... Simpler graphs work perfectly

What is the current bug behavior?

Nothing appears :(

What is the expected correct behavior?

A Nice complicated sequence graph shows up

Relevant logs and/or screenshots

pasted above

Output of checks

This bug happens on GitLab.com wiki feature

Results of GitLab environment info

I'm using the online gitlab

Results of GitLab application Check

This rake thingy is not working for me on windows

Possible fixes

Upgrade the version of mermaidjs to the latest edition