Skip to content

Commit

Permalink
add trim() inside markdownFIle function
Browse files Browse the repository at this point in the history
  • Loading branch information
lunelson committed Feb 8, 2019
1 parent a266290 commit ccc37ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/functions-pug.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ module.exports = function (srcDir, pubDir, options) {
content
} = grayMatter(fs.readFileSync(absFile, 'utf8'));
depFiles.push(absFile);
return '\n' + mdi.render(content).trim();
return '\n' + mdi.render(content.trim()).trim();
},
writeFile(relFile, content) {
const absFile = srcResolve(relFile);
Expand Down

0 comments on commit ccc37ce

Please sign in to comment.