Skip to content

Commit 0003de8

Browse files
MSSandroidRokt33r
authored andcommitted
remove code redundancy in parsing of PlantUml
1 parent 5357d8d commit 0003de8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browser/lib/markdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class Markdown {
186186
const plantuml = require('markdown-it-plantuml')
187187
const plantUmlStripTrailingSlash = (url) => url.endsWith('/') ? url.slice(0, -1) : url
188188
const plantUmlServerAddress = plantUmlStripTrailingSlash(config.preview.plantUMLServerAddress)
189-
const parsePlantUml = function (umlCode, openMarker, closeMarker, type){
189+
const parsePlantUml = function (umlCode, openMarker, closeMarker, type) {
190190
const s = unescape(encodeURIComponent(umlCode))
191191
const zippedCode = deflate.encode64(
192192
deflate.zip_deflate(`${openMarker}\n${s}\n${closeMarker}`, 9)

0 commit comments

Comments
 (0)