Added the path to the parsed article

This commit is contained in:
Elio Struyf
2023-10-31 11:44:02 +01:00
parent b60aadc4a3
commit 14ddd8b53c
14 changed files with 98 additions and 47 deletions
+2 -2
View File
@@ -71,7 +71,7 @@ export class CustomScript {
path: string | null = null
): Promise<void> {
let articlePath: string | null = path;
let article: ParsedFrontMatter | null = null;
let article: ParsedFrontMatter | null | undefined = null;
if (!path) {
const editor = window.activeTextEditor;
@@ -214,7 +214,7 @@ export class CustomScript {
*/
private static async runScript(
wsPath: string,
article: ParsedFrontMatter | null,
article: ParsedFrontMatter | null | undefined,
contentPath: string,
script: ICustomScript
): Promise<string | null> {