feat: add support for mermaid diagrams (#244)
This commit is contained in:
		
							
								
								
									
										8
									
								
								layouts/partials/mermaid.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								layouts/partials/mermaid.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
{{if $.Site.Data.config.enableMermaid}}
 | 
			
		||||
  {{ if .Page.Store.Get "hasMermaid" }}
 | 
			
		||||
    <script type="module">
 | 
			
		||||
      import mermaid from 'https://unpkg.com/mermaid@9/dist/mermaid.esm.min.mjs';
 | 
			
		||||
      mermaid.initialize({ startOnLoad: true });
 | 
			
		||||
    </script>
 | 
			
		||||
  {{ end }}
 | 
			
		||||
{{ end }}
 | 
			
		||||
		Reference in New Issue
	
	Block a user