From 7add0755683675019f2c540ecde7009aa3565841 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Sat, 21 Mar 2026 20:36:08 +0000 Subject: [PATCH] console debugs when could not parse YAML frontmatter --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index fc5848e..9f52617 100644 --- a/src/index.ts +++ b/src/index.ts @@ -45,7 +45,9 @@ export default function gemtext(config: GemtextConfig = {}): AstroIntegration { frontmatter = lines.slice(1, bodyStartLineIndex - 1).join('\n'); try { data = { ...data, ...parseYaml(frontmatter, { schema: 'yaml-1.1' }) }; - } catch { } + } catch (e) { + console.debug('Failed to parse YAML frontmatter in gemtext:', e); + } } const body = lines.slice(bodyStartLineIndex).join('\n');