Mermaid in Share Point

New Contributor

Hello, got a problem with Mermaid code in sharepoint 2016. In script editor i put this code

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<div class="mermaid">
graph LR
A --- B
B-->C[fa:fa-ban forbidden]
B-->D(fa:fa-spinner);
</div>
<script src="mermaid.min.js"></script>
<script>mermaid.initialize({startOnLoad:true});</script>
</body>
</html>

and in edit mode SharePoint shows all properly, but when iam exiting edit mode Sharepoint only shows 

graph LR A --- B B-->C[fa:fa-ban forbidden] B-->D(fa:fa-spinner);

not the picture.

0 Replies