docsify-swimlanes-io

1.1.1 • Public • Published

docsify-swimlanes-io is a docsify plugin that let you embed swimlanes.io sequence diagrams in docsify.

How to use

Just add the plugin script:

<script src="//unpkg.com/docsify-swimlanes-io@latest/dist/docsify-swimlanes-io.js"></script> 

And add the diagram text:

```swimlanes-io
title: Simple example
A -> B: Ping
B --> A: Pong
```

Alternatively use a <swimlanes-io> element. This is required if you want to render code blocks in the diagram.

<swimlanes-io>
title: Simple example
A -> B: Ping
note:
```
{
    // code block
}
```
B --> A: Pong
</swimlanes-io>

See the swimlanes.io syntax overview for more details.

Package Sidebar

Install

npm i docsify-swimlanes-io

Homepage

swimlanes.io

Weekly Downloads

27

Version

1.1.1

License

ISC

Unpacked Size

155 kB

Total Files

9

Last publish

Collaborators

  • drhoffmann