Jacky Zhao
2025-03-06 f6f417a505a813c098e40d1e1d660e19ad37110b
quartz/plugins/transformers/frontmatter.ts
@@ -67,7 +67,8 @@
        [remarkFrontmatter, ["yaml", "toml"]],
        () => {
          return (_, file) => {
            const { data } = matter(Buffer.from(file.value), {
            const fileData = Buffer.from(file.value as Uint8Array)
            const { data } = matter(fileData, {
              ...opts,
              engines: {
                yaml: (s) => yaml.load(s, { schema: yaml.JSON_SCHEMA }) as object,