Skip to content

Commit 736033b

Browse files
committed
Fix plantuml service error
1 parent c81b76f commit 736033b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ module.exports = {
6262
'page:before': async function(page) {
6363
let content = page.content;
6464
const output = this.output;
65-
65+
6666
const umls = [];
6767
const re = new RegExp(options.blockRegex, 'img');
6868

6969
while (match = re.exec(content)) {
7070
const rawBlock = match[0];
71-
const umlBlock = match[1];
71+
const umlBlock = match[1].trim();
7272
const md5 = crypto.createHash('md5').update(umlBlock).digest('hex');
7373
const svgPath = path.join(options.umlPath, `${md5}.svg`);
7474
umls.push({rawBlock, umlBlock,svgPath});

0 commit comments

Comments
 (0)