From c97fd7089ad372537114ab469f1f9d6e95e5237a Mon Sep 17 00:00:00 2001
From: Stephen Tse <Stephen-X@users.noreply.github.com>
Date: Thu, 06 Mar 2025 01:14:06 +0000
Subject: [PATCH] Added emoji support to Satori when generating OG images (#1593)
---
quartz/plugins/transformers/frontmatter.ts | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/quartz/plugins/transformers/frontmatter.ts b/quartz/plugins/transformers/frontmatter.ts
index 625cf60..9679bd1 100644
--- a/quartz/plugins/transformers/frontmatter.ts
+++ b/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,
--
Gitblit v1.10.0