mirror of
https://github.com/zigholding/obsidian-notesync-plugin.git
synced 2026-07-22 05:43:30 +00:00
fix
This commit is contained in:
parent
38768eef20
commit
6c0515212c
1 changed files with 2 additions and 2 deletions
4
main.ts
4
main.ts
|
|
@ -86,7 +86,7 @@ export default class NoteSyncPlugin extends Plugin {
|
|||
await this.app.fileManager.processFrontMatter(
|
||||
tfile,
|
||||
async(fm) =>{
|
||||
|
||||
if(!tfile){return}
|
||||
// set output dir/设置输出目录
|
||||
if(!dst){
|
||||
dst = fm[this.yaml]?.Dir
|
||||
|
|
@ -110,7 +110,7 @@ export default class NoteSyncPlugin extends Plugin {
|
|||
target = dst+'/'+tfile.basename+'.md';
|
||||
}
|
||||
|
||||
if(!tfile){return}
|
||||
|
||||
let data = await this.app.vault.cachedRead(tfile)
|
||||
if(fm[this.yaml]?.RemoveMeta){
|
||||
data = data.replace(
|
||||
|
|
|
|||
Loading…
Reference in a new issue