fix: Removed extra generated whitespace

This commit is contained in:
Laegel
2020-06-28 15:57:11 +02:00
parent 3eb70d9871
commit f4fe74582a
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ title: "${title}"
---
${item.content}
`;
`;
const s = path.split("/");
s.pop();
const targetDirectory = s.join("/");

View File

@@ -80,7 +80,7 @@ const transform = async (contents, crate) => {
return {
path: item.path,
content: doc.replace(/!\[/g, "!["),
content: doc.replace(/!\[/g, "![").replace(/\s*$/g, ""),
};
});
transformedContents[key] = await Promise.all(res);