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');