Jacky Zhao
2025-03-06 6d195fd40a48fe275dc910f7a115e5b2f3c1c056
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,