remark-plantuml-link
v2.0.0
Published
Generate a plantuml image link from text
Downloads
58
Maintainers
Readme
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)