YAML schema 1.1
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ export default function gemtext(config: GemtextConfig = {}): AstroIntegration {
|
||||
if (lines.at(0) === '---' && lines.lastIndexOf('---')) {
|
||||
frontmatter = lines.slice(1, lines.indexOf('---', 1)).join('\n');
|
||||
try {
|
||||
data = { ...data, ...parseYaml(frontmatter) };
|
||||
data = { ...data, ...parseYaml(frontmatter, { schema: 'yaml-1.1' }) };
|
||||
} catch { }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user