diff options
| author | Joe Carstairs <me@joeac.net> | 2026-03-21 20:36:08 +0000 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-03-21 20:36:08 +0000 |
| commit | 7add0755683675019f2c540ecde7009aa3565841 (patch) | |
| tree | aa9c9b93d59bf74bdc2c3ec11c1cafb421a7adcf /src | |
| parent | 18ac414a8f89f0c5937d27758858ca2a7ad8e418 (diff) | |
console debugs when could not parse YAML frontmatter
Diffstat (limited to 'src')
| -rw-r--r-- | src/index.ts | 4 |
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'); |
