@yank-note/extension-kroki
v1.1.2
Published
Kroki diagram extension for Yank Note
Downloads
11
Readme
Kroki Extension
This extension allow you create diagrams using Kroki in Yank Note.
Usage
Add --kroki-- [diagram type]
before your diagram code block.
For example, if you want to create a wavedrom
diagram, you can use the following code block:
```js
// --kroki-- wavedrom
{ signal: [
{ name: "clk", wave: "p.....|..." },
{ name: "Data", wave: "x.345x|=.x", data: ["head", "body", "tail", "data"] },
{ name: "Request", wave: "0.1..0|1.0" },
{},
{ name: "Acknowledge", wave: "1.....|01." }
]}
```
Or you can use the following code block:
```kroki
wavedrom
{ signal: [
{ name: "clk", wave: "p.....|..." },
{ name: "Data", wave: "x.345x|=.x", data: ["head", "body", "tail", "data"] },
{ name: "Request", wave: "0.1..0|1.0" },
{},
{ name: "Acknowledge", wave: "1.....|01." }
]}
```
If you want to customize the kroki server, you can go Settings
-> Plugin
-> Kroki Image URL
to set it.