unified

Project: unlight/remark-plantuml-link

Package: remark-plantuml-link@2.0.0

  1. Generate a plantuml image link from text
  1. remark 213
  2. markdown 152
  3. remark-plugin 81

remark-plantuml-link

Generate a plantuml image link from text

Install

npm install --save-dev remark-plantuml-link

Usage

const remark = require('remark');
const plantumlLink = require('remark-plantuml-link');
const input = '<!-- ```plantuml\n(A)\n``` -->';
const output = remark().use(plantumlLink).processSync(input).toString();

Input:

<!-- ```plantuml
(A)
``` -->

Output:

<!-- ```plantuml
(A)
``` -->

![](http://www.plantuml.com/plantuml/png/qt3K1000)

Similar Projects

License

MIT