Skip to content

Commit

Permalink
remove code redundancy in parsing of PlantUml
Browse files Browse the repository at this point in the history
  • Loading branch information
MSSandroid authored and Rokt33r committed Oct 10, 2019
1 parent 5357d8d commit 0003de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser/lib/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class Markdown {
const plantuml = require('markdown-it-plantuml')
const plantUmlStripTrailingSlash = (url) => url.endsWith('/') ? url.slice(0, -1) : url
const plantUmlServerAddress = plantUmlStripTrailingSlash(config.preview.plantUMLServerAddress)
const parsePlantUml = function (umlCode, openMarker, closeMarker, type){
const parsePlantUml = function (umlCode, openMarker, closeMarker, type) {
const s = unescape(encodeURIComponent(umlCode))
const zippedCode = deflate.encode64(
deflate.zip_deflate(`${openMarker}\n${s}\n${closeMarker}`, 9)
Expand Down

0 comments on commit 0003de8

Please sign in to comment.