Skip to content

Commit

Permalink
fix(plugins/memosplus/memosplus.cs): build error
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyungent committed Aug 19, 2023
1 parent c8f59de commit 00ffd0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/MemosPlus/MemosPlus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ public async Task ExecuteAsync()
isErrorMemosApiResource = true;
}

// 注意: 对于资源文件的引用来说,无论资源文件是否成功获取, 它都是存在的,其在 md 文件中的引用字符串不会变
resourceFileMdSb.AppendLine($"![{memoResourceFileName}]({Path.GetFileNameWithoutExtension(memoFileName)}/{memoResourceFileName}) ");

// 注意: 资源文件路径也要放入其中
memoFilePaths.Add(repoTargetResourceFilePath);
}
Expand All @@ -128,9 +131,6 @@ public async Task ExecuteAsync()
#region md 文件内容
// 其实总体来看 md 文件内容不会因为 具体的资源文件API成功与否改变内容,因此不需要关联资源 API Error

// 注意: 对于资源文件的引用来说,无论资源文件是否成功获取, 它都是存在的,其在 md 文件中的引用字符串不会变
resourceFileMdSb.AppendLine($"![{memoResourceFileName}]({Path.GetFileNameWithoutExtension(memoFileName)}/{memoResourceFileName}) ");

// 注意: By default, Properties and methods of .NET objects are automatically exposed with lowercase and `_` names.
// It means that a property like `MyMethodIsNice` will be exposed as `my_method_is_nice`.
// https://github.com/scriban/scriban
Expand Down

0 comments on commit 00ffd0d

Please sign in to comment.