Forum Discussion

Vladislavs1's avatar
Vladislavs1
Copper Contributor
Mar 22, 2021

Mermaid in Share Point

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.

  • Tizza42's avatar
    Tizza42
    Copper Contributor
    Hi, did you ever get Mermaid working in SharePoint?

Share

Resources