|
@@ -7,7 +7,7 @@ export default class PlantUMLConfigurer {
|
|
|
const config = crowi.getConfig();
|
|
const config = crowi.getConfig();
|
|
|
|
|
|
|
|
this.deflate = require('markdown-it-plantuml/lib/deflate.js');
|
|
this.deflate = require('markdown-it-plantuml/lib/deflate.js');
|
|
|
- this.serverUrl = config.env.PLANTUML_URI || 'http://plantuml.com';
|
|
|
|
|
|
|
+ this.serverUrl = config.env.PLANTUML_URI || 'http://plantuml.com/plantuml';
|
|
|
|
|
|
|
|
this.generateSource = this.generateSource.bind(this);
|
|
this.generateSource = this.generateSource.bind(this);
|
|
|
}
|
|
}
|
|
@@ -21,6 +21,6 @@ export default class PlantUMLConfigurer {
|
|
|
generateSource(umlCode) {
|
|
generateSource(umlCode) {
|
|
|
const zippedCode =
|
|
const zippedCode =
|
|
|
this.deflate.encode64(this.deflate.zip_deflate('@startuml\n' + umlCode + '\n@enduml', 9));
|
|
this.deflate.encode64(this.deflate.zip_deflate('@startuml\n' + umlCode + '\n@enduml', 9));
|
|
|
- return urljoin(this.serverUrl, 'plantuml', 'svg' , zippedCode);
|
|
|
|
|
|
|
+ return urljoin(this.serverUrl, 'svg' , zippedCode);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|