diff --git a/README.md b/README.md index 05e4cd4e..ec0fe453 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ 例如:"/root/hello/world.md"中的卡片会自动同步到"root::hello::world"中 2. 把id修改为block链接的形式,从而实现anki直接跳转到obsidian markdown文件对应的block ![图 1](images/5913712e835c128fdc7a12c0c0c1caa006ac7d47bf85a3a9f6c5970e37a0a948.png) -3. 优化了content的内容,路径和标题加在最前面,以换行分割,后面有一行分割线和卡片具体内容区分 +3. 优化了context的内容,路径和标题加在最前面,以换行分割,后面有一行分割线和卡片具体内容区分。标题中如果有链接可以转化成功。 # 本项目使用方法 将main.js和manifes.json文件替换obsidian to anki中的main.js manifes.json 在插件设置中,开启设置,并重启obsidian @@ -14,7 +14,6 @@ 原来的正则表达式`(?$1'); + const mathRegex = /\$(.+?)\$/g; + convertedHeading = convertedHeading.replace(mathRegex, '\\($1\\)'); + heading_strs.push(convertedHeading) } let result_arr: string[] = [result] result_arr.push(...heading_strs)