try svg arch diagram
This commit is contained in:
parent
603d42ad3f
commit
0fa4d7824f
3 changed files with 58 additions and 45 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { renderMermaidAscii } from "beautiful-mermaid";
|
||||
import { renderMermaid } from "beautiful-mermaid";
|
||||
|
||||
const ascii = renderMermaidAscii(`
|
||||
const diagram = await renderMermaid(`
|
||||
flowchart TD
|
||||
subgraph Node1
|
||||
bme280 -->|i2c| rp2040
|
||||
|
|
@ -10,4 +10,4 @@ const ascii = renderMermaidAscii(`
|
|||
proxy -->|mqtt| ha[Home Assistant Servier]
|
||||
|
||||
`);
|
||||
console.log(ascii);
|
||||
console.log(diagram);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue