@yank-note/extension-kroki

1.1.1 • Public • Published

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.

Screenshots

image

Readme

Keywords

none

Package Sidebar

Install

npm i @yank-note/extension-kroki

Weekly Downloads

4

Version

1.1.1

License

AGPL-3.0

Unpacked Size

54.4 kB

Total Files

6

Last publish

Collaborators

  • purocean