mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +02:00
Adding support for title and accessibilities
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
color: grey;
|
||||
}
|
||||
.mermaid {
|
||||
border: 0px solid red;
|
||||
border: 1px solid red;
|
||||
}
|
||||
.mermaid2 {
|
||||
display: none;
|
||||
@@ -130,7 +130,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<pre id="diagram4" class="mermaid2">
|
||||
<pre id="diagram4" class="mermaid">
|
||||
treemap
|
||||
"Section 1"
|
||||
"Leaf 1.1": 12
|
||||
@@ -160,19 +160,15 @@ treemap
|
||||
|
||||
</pre
|
||||
>
|
||||
<pre id="diagram4" class="mermaid2">
|
||||
treemap
|
||||
"Root"
|
||||
"Branch 1"
|
||||
"Leaf 1.1": 12
|
||||
"Branch 1.2"
|
||||
"Leaf 1.2.1": 110
|
||||
"Leaf 1.2.2": 12
|
||||
"Leaf 1.2.3": 13
|
||||
"Branch 2"
|
||||
"Leaf 2.1": 20
|
||||
"Leaf 2.2": 25
|
||||
"Leaf 2.3": 12
|
||||
<pre id="diagram4" class="mermaid">
|
||||
treemap
|
||||
title Treemap with Title
|
||||
"Category A"
|
||||
"Item A1": 10
|
||||
"Item A2": 20
|
||||
"Category B"
|
||||
"Item B1": 15
|
||||
"Item B2": 25
|
||||
</pre>
|
||||
<pre id="diagram4" class="mermaid2">
|
||||
flowchart LR
|
||||
@@ -507,7 +503,7 @@ kanban
|
||||
alert('It worked');
|
||||
}
|
||||
await mermaid.initialize({
|
||||
theme: 'base',
|
||||
theme: 'forest',
|
||||
// theme: 'default',
|
||||
// theme: 'forest',
|
||||
// handDrawnSeed: 12,
|
||||
|
Reference in New Issue
Block a user