Skip to content

Commit

Permalink
another one hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
meff34 committed Apr 7, 2019
1 parent 8673166 commit 56832a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/beautify-image-paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require("path");
const markdownLinkExtractor = require("markdown-link-extractor");
const isUrl = require("is-url");

module.exports = ({ content, filePath }) => {
module.exports = (content, filePath) => {
let markdown = content;
const dir = path.dirname(filePath);

Expand Down
3 changes: 1 addition & 2 deletions src/markdown-combine.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ const combineMarkdowns = ({ contents, pathToStatic, mainMdFilename }) => async l

try {
const content = files
.map(({ content, name }) => beautifyImages({ content, filePath: name }))
.map(({ content }) => content)
.map(({ content, name }) => beautifyImages(content, name))
.join("\n\n\n\n");
await writeFile(resultFilePath, content);
} catch (e) {
Expand Down

0 comments on commit 56832a6

Please sign in to comment.