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('---')) {
|
if (lines.at(0) === '---' && lines.lastIndexOf('---')) {
|
||||||
frontmatter = lines.slice(1, lines.indexOf('---', 1)).join('\n');
|
frontmatter = lines.slice(1, lines.indexOf('---', 1)).join('\n');
|
||||||
try {
|
try {
|
||||||
data = { ...data, ...parseYaml(frontmatter) };
|
data = { ...data, ...parseYaml(frontmatter, { schema: 'yaml-1.1' }) };
|
||||||
} catch { }
|
} catch { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user