mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 04:44:08 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			635 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			635 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
<html>
 | 
						|
  <body>
 | 
						|
    <pre class="mermaid">
 | 
						|
      flowchart-elk
 | 
						|
      a[hello] --> b[world]
 | 
						|
      b --> c{test}
 | 
						|
      c --> one
 | 
						|
      c --> two
 | 
						|
      c --> three
 | 
						|
    </pre>
 | 
						|
 | 
						|
    <script type="module">
 | 
						|
      import mermaid from './mermaid.esm.mjs';
 | 
						|
      import elk from './mermaid-flowchart-elk.esm.min.mjs';
 | 
						|
      if (window.location.search.includes('elk')) {
 | 
						|
        await mermaid.registerExternalDiagrams([elk]);
 | 
						|
      }
 | 
						|
      mermaid.initialize({
 | 
						|
        logLevel: 3,
 | 
						|
        startOnLoad: false,
 | 
						|
      });
 | 
						|
      await mermaid.run();
 | 
						|
      if (window.Cypress) {
 | 
						|
        window.rendered = true;
 | 
						|
      }
 | 
						|
    </script>
 | 
						|
  </body>
 | 
						|
</html>
 |