牙叔教程
module.exports = async (params) => {const activeFile = params.app.workspace.getActiveFile();if (!activeFile) {new Notice("No active file.");return;}const activeFileCache = params.app.metadataCache.getFileCache(activeFile);let fileContent = await params.app.vault.cachedRead(activeFile);};
async function readEmbedFileContent(params, embed, parentFilePath) {let filePath = embed.link;filePath = parentFilePath + "/" + filePath;let fileContent = await params.app.vault.readRaw(filePath);return fileContent;}
let abstractFile =params.app.vault.getAbstractFileByPath('01Sources/01软件/01obsidian教程/0已完成/01mermaid/03顺序.md')
let normalizeFilePath = params.app.vault.adapter.path.posix.normalize(filePath);console.log("normalizeFilePath = " + normalizeFilePath);let file = params.app.vault.fileMap[normalizeFilePath];
名人名言
思路是最重要的, 其他的百度, bing, stackoverflow, github, 安卓文档, autojs文档, 最后才是群里问问
—- 牙叔教程
声明
部分内容来自网络
本教程仅用于学习, 禁止用于其他用途
bilibili
微信公众号 牙叔教程

QQ群
747748653
