summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-03-21 20:36:08 +0000
committerJoe Carstairs <me@joeac.net>2026-03-21 20:36:08 +0000
commit7add0755683675019f2c540ecde7009aa3565841 (patch)
treeaa9c9b93d59bf74bdc2c3ec11c1cafb421a7adcf /src
parent18ac414a8f89f0c5937d27758858ca2a7ad8e418 (diff)
console debugs when could not parse YAML frontmatter
Diffstat (limited to 'src')
-rw-r--r--src/index.ts4
1 files changed, 3 insertions, 1 deletions
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');