chore: Add example page link in index

This commit is contained in:
Sidharth Vinod 2024-03-23 15:07:21 +05:30
parent 26ed819664
commit 100123b43e
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
3 changed files with 3 additions and 1 deletions

View File

@ -863,7 +863,6 @@ describe('Title and arrow styling #4813', () => {
});
it('Render with stylized arrows', () => {
const titleString = 'Test Title';
renderGraph(
`
flowchart LR

View File

@ -39,6 +39,8 @@ graph TB
<script type="module">
import mermaid from '/mermaid.esm.mjs';
import flowchartELK from '/mermaid-flowchart-elk.esm.mjs';
await mermaid.registerExternalDiagrams([flowchartELK]);
async function render(str) {
const { svg } = await mermaid.render('dynamic', str);
document.getElementById('dynamicDiagram').innerHTML = svg;

View File

@ -18,6 +18,7 @@
<p>
Some of these pages have duplicates; some are slow to load because they have so many graphs.
</p>
<p>You can test custom code in the <a href="./dev/example.html">development page</a>.</p>
<p>
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>