mirror of
https://github.com/tauri-apps/rustdocusaurus.git
synced 2026-02-04 02:31:18 +01:00
fix: Removed extra generated whitespace
This commit is contained in:
@@ -21,7 +21,7 @@ title: "${title}"
|
||||
---
|
||||
|
||||
${item.content}
|
||||
`;
|
||||
`;
|
||||
const s = path.split("/");
|
||||
s.pop();
|
||||
const targetDirectory = s.join("/");
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user