Skip to content

Commit

Permalink
generate bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ksky521 committed Nov 16, 2014
1 parent 498088f commit d14b26d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d14b26d

Please sign in to comment.