mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-10-31 19:04:16 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			47 lines
		
	
	
		
			983 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			983 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html>
 | |
| <head>
 | |
|     <meta charset="UTF-8">
 | |
|     <script src="../../dist/mermaid.js"></script>
 | |
|     <script>
 | |
|         var config = {
 | |
|             startOnLoad: true,
 | |
|             callback:function(id){
 | |
|                 console.log(id,' rendered');
 | |
|             },
 | |
|             flowchart:{
 | |
|                     useMaxWidth:true,
 | |
|                     htmlLabels:true
 | |
|                 }
 | |
|         };
 | |
|         mermaid.initialize(config);
 | |
|     </script>
 | |
|     <script>
 | |
|         function coolAction(){
 | |
|             console.log('Got callback in user defined function');
 | |
|         }
 | |
|     </script>
 | |
|     <style>
 | |
|         .cluster {
 | |
|             fill: #fcac93;
 | |
|             stroke: grey;
 | |
|         }
 | |
|     </style>
 | |
|     <link rel="stylesheet" href="../../dist/mermaid.forest.css"/>
 | |
| </head>
 | |
|     <body>
 | |
|     <h1>Issue 211</h1>
 | |
| 
 | |
|     <div class="mermaid" id="i211">
 | |
|         graph TD
 | |
|         subgraph A
 | |
|             B
 | |
|             subgraph C
 | |
|                 D
 | |
|             end
 | |
|         end
 | |
| 
 | |
|     </div>
 | |
|     </body>
 | |
| </html>
 | 
