From 56832a6e1d550b57c8b98ea1b94e745143877105 Mon Sep 17 00:00:00 2001 From: "i.gorbunov" Date: Sun, 7 Apr 2019 23:21:55 +0300 Subject: [PATCH] another one hotfix --- src/beautify-image-paths.js | 2 +- src/markdown-combine.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/beautify-image-paths.js b/src/beautify-image-paths.js index efe2c0f..a6cc42f 100644 --- a/src/beautify-image-paths.js +++ b/src/beautify-image-paths.js @@ -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); diff --git a/src/markdown-combine.js b/src/markdown-combine.js index 91965a4..fe4027b 100644 --- a/src/markdown-combine.js +++ b/src/markdown-combine.js @@ -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) {