Skip to content

Commit d2e0cd2

Browse files
committed
fix legend
1 parent 159e240 commit d2e0cd2

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/mermaid-render.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ export class MermaidRender {
66

77
public render(graph: Graph): string {
88
return `
9-
${this.renderLegendSection()}
109
\`\`\`mermaid
1110
flowchart TD
11+
${this.renderLegendSection()}
1212
${this.renderCssSection()}
1313
${this.renderIssuesSection(graph.vertices)}
1414
${this.renderDependencies(graph.edges)}
@@ -34,12 +34,8 @@ classDef completed fill:#ccffd8,color:#000;
3434
}
3535

3636
return `
37-
\`\`\`mermaid
38-
flowchart TD
39-
${this.renderCssSection()}
40-
4137
%% <Legend>
42-
38+
legend --> start
4339
subgraph legend["Legend"]
4440
direction LR;
4541
notstarted("Issue is not started"):::notstarted;
@@ -49,7 +45,6 @@ subgraph legend["Legend"]
4945
end
5046
5147
%% </Legend>
52-
\`\`\`
5348
`;
5449
}
5550

0 commit comments

Comments
 (0)