9 lines
194 B
TypeScript
9 lines
194 B
TypeScript
import { renderMermaidSVG } from "beautiful-mermaid";
|
|
|
|
const svg = renderMermaidSVG(`
|
|
graph TD
|
|
A[Start] --> B{Decision}
|
|
B -->|Yes| C[Action]
|
|
B -->|No| D[End]
|
|
`);
|
|
console.log(svg);
|