get basic svg test working
This commit is contained in:
parent
7cce883993
commit
48040a4f56
2 changed files with 65 additions and 1 deletions
10
index.ts
10
index.ts
|
|
@ -1 +1,9 @@
|
|||
console.log("Hello via Bun!");
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue