There was an error while loading. Please reload this page.
1 parent c81b76f commit 736033bCopy full SHA for 736033b
index.js
@@ -62,13 +62,13 @@ module.exports = {
62
'page:before': async function(page) {
63
let content = page.content;
64
const output = this.output;
65
-
+
66
const umls = [];
67
const re = new RegExp(options.blockRegex, 'img');
68
69
while (match = re.exec(content)) {
70
const rawBlock = match[0];
71
- const umlBlock = match[1];
+ const umlBlock = match[1].trim();
72
const md5 = crypto.createHash('md5').update(umlBlock).digest('hex');
73
const svgPath = path.join(options.umlPath, `${md5}.svg`);
74
umls.push({rawBlock, umlBlock,svgPath});
0 commit comments