diff --git a/lib/generate.js b/lib/generate.js index 150fc0d38..5cffc39aa 100755 --- a/lib/generate.js +++ b/lib/generate.js @@ -131,12 +131,10 @@ function copyLinkToOutput(content, filepath, outputDir) { files.push(file); }); //解析cover - var json = md_parser.parseCover(content); - + var json = md_parser.parseCover(content.split(/\[slide.*\]/i)[0]); if (json.files) { files = files.concat(json.files.split(/\s?,\s?/)); } - files.filter(function(f) { return !/^http[s]?:\/\//.test(f); }).forEach(function(f) { diff --git a/package.json b/package.json index ca74e84e3..0e5bd0c64 100755 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "nodeppt", "jsname": "nodeppt", "description": "A simple, in-browser, markdown-driven presentation framework", - "version": "0.9.6-2", + "version": "0.9.6-3", "site": "https://github.com/ksky521/nodePPT", "author": { "name": "Theo Wang",