开源软件名称(OpenSource Name):gmunguia/markdown-it-plantuml开源软件地址(OpenSource Url):https://github.com/gmunguia/markdown-it-plantuml开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):markdown-it-plantuml
With this plugin you can create uml diagrams inside your markdown files: # UML example:
@startuml
Bob -> Alice : hello
@enduml See plantuml website for more details. Installationnode.js, browser: $ npm install markdown-it-plantuml --save Basic usageconst md = require('markdown-it')()
.use(require('markdown-it-plantuml')); See markdown-it repository for more details. Advanced usageconst md = require('markdown-it')()
.use(require('markdown-it-plantuml'), options); Options:
Example: using custom URL to serve diagramsconst options = {
generateSource: function generateSource(umlCode) {
return `https://your.server/plant-uml/${yourEncodeFunction(umlCode)}`;
}
}
const md = require('markdown-it')()
.use(require('markdown-it-plantuml'), options); Example: generating ditaa diagramsconst options = {
openMarker: '@startditaa',
closeMarker: '@endditaa',
diagramName: 'ditaa',
imageFormat: 'png'
}
const md = require('markdown-it')()
.use(require('markdown-it-plantuml'), options); License |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论