diff options
| author | Joe Carstairs <me@joeac.net> | 2026-03-21 12:12:45 +0000 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-03-21 12:12:45 +0000 |
| commit | 44b0554cc356f5fa35da689c79e5fbb48436755e (patch) | |
| tree | 0995fc99deed87b67ce3f1a296c9aa1e50752c88 /src/index.ts | |
| parent | a5af23e2a4af0eabef49530d8afe8a3b56bb5721 (diff) | |
YAML schema 1.1
Diffstat (limited to 'src/index.ts')
| -rw-r--r-- | src/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts index f2620fe..a9fd873 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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 { } } |
