feat: PlantUML markdown module (#1066)
* initial plantuml work * got plantuml rendering working * fix: added plantuml module config order
This commit is contained in:
committed by
Nicolas Giard
parent
7b46d2a4fc
commit
4f8a28f617
16
server/modules/rendering/markdown-plantuml/renderer.js
Normal file
16
server/modules/rendering/markdown-plantuml/renderer.js
Normal file
@@ -0,0 +1,16 @@
|
||||
const mdPlantUml = require('markdown-it-plantuml')
|
||||
|
||||
// ------------------------------------
|
||||
// Markdown - PlantUML Preprocessor
|
||||
// ------------------------------------
|
||||
|
||||
module.exports = {
|
||||
init (md, conf) {
|
||||
md.use(mdPlantUml, {
|
||||
openMarker: conf.openMarker,
|
||||
closeMarker: conf.closeMarker,
|
||||
imageFormat: conf.imageFormat,
|
||||
server: conf.server
|
||||
})
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user