From c59ba6e8ad0be9f32b52abe3451341b485baf50e Mon Sep 17 00:00:00 2001 From: Anand Chowdhary <mail@anandchowdhary.com> Date: Tue, 22 Nov 2022 10:47:30 +0100 Subject: [PATCH] :bug: Fix body trimming title --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 136fd85..617514a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -61,7 +61,7 @@ const parseNoteFile = async (dirName: string, year: string, file: string): Promi ? attributes.description : "summary" in attributes && typeof attributes.summary === "string" ? attributes.summary - : body.substring(body.indexOf(title) + 1)?.trim(); + : body.substring(body.indexOf(title))?.trim(); return { slug: file,