diff --git a/config/post-process.js b/config/post-process.js index 8fbc59cf..9e543215 100644 --- a/config/post-process.js +++ b/config/post-process.js @@ -49,7 +49,7 @@ cssclasses: hide-title `+ fileContent; // Somehow we still get Plugin_2 even if `obsidian.d.ts` doesn't contain any reference to it - newFileContent = newFileContent.replaceAll('Plugin_2', 'Plugin').replaceAll('Plugin\_2', 'Plugin'); + newFileContent = newFileContent.replaceAll('obsidian.', '').replaceAll('Plugin_2', 'Plugin').replaceAll('Plugin\_2', 'Plugin'); await fs.writeFile(newFilePath, newFileContent, 'utf-8'); } catch (err) { console.error(`Error renaming file: ${err.message}`);