mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-09 18:39:41 +02:00
chore: Add example page link in index
This commit is contained in:
@@ -863,7 +863,6 @@ describe('Title and arrow styling #4813', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('Render with stylized arrows', () => {
|
it('Render with stylized arrows', () => {
|
||||||
const titleString = 'Test Title';
|
|
||||||
renderGraph(
|
renderGraph(
|
||||||
`
|
`
|
||||||
flowchart LR
|
flowchart LR
|
||||||
|
@@ -39,6 +39,8 @@ graph TB
|
|||||||
|
|
||||||
<script type="module">
|
<script type="module">
|
||||||
import mermaid from '/mermaid.esm.mjs';
|
import mermaid from '/mermaid.esm.mjs';
|
||||||
|
import flowchartELK from '/mermaid-flowchart-elk.esm.mjs';
|
||||||
|
await mermaid.registerExternalDiagrams([flowchartELK]);
|
||||||
async function render(str) {
|
async function render(str) {
|
||||||
const { svg } = await mermaid.render('dynamic', str);
|
const { svg } = await mermaid.render('dynamic', str);
|
||||||
document.getElementById('dynamicDiagram').innerHTML = svg;
|
document.getElementById('dynamicDiagram').innerHTML = svg;
|
||||||
|
@@ -18,6 +18,7 @@
|
|||||||
<p>
|
<p>
|
||||||
Some of these pages have duplicates; some are slow to load because they have so many graphs.
|
Some of these pages have duplicates; some are slow to load because they have so many graphs.
|
||||||
</p>
|
</p>
|
||||||
|
<p>You can test custom code in the <a href="./dev/example.html">development page</a>.</p>
|
||||||
<p>
|
<p>
|
||||||
If you'd like to clean up one of the pages, please feel free to
|
If you'd like to clean up one of the pages, please feel free to
|
||||||
<a href="https://github.com/mermaid-js/mermaid/pulls">submit a pull request (PR).</a>
|
<a href="https://github.com/mermaid-js/mermaid/pulls">submit a pull request (PR).</a>
|
||||||
|
Reference in New Issue
Block a user