console debugs when could not parse YAML frontmatter
This commit is contained in:
+3
-1
@@ -45,7 +45,9 @@ export default function gemtext(config: GemtextConfig = {}): AstroIntegration {
|
|||||||
frontmatter = lines.slice(1, bodyStartLineIndex - 1).join('\n');
|
frontmatter = lines.slice(1, bodyStartLineIndex - 1).join('\n');
|
||||||
try {
|
try {
|
||||||
data = { ...data, ...parseYaml(frontmatter, { schema: 'yaml-1.1' }) };
|
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');
|
const body = lines.slice(bodyStartLineIndex).join('\n');
|
||||||
|
|||||||
Reference in New Issue
Block a user