diff --git a/app/modules/rehype-momiji/rehypeMomiji.ts b/app/modules/rehype-momiji/rehypeMomiji.ts index a52a0ea..a3662f6 100644 --- a/app/modules/rehype-momiji/rehypeMomiji.ts +++ b/app/modules/rehype-momiji/rehypeMomiji.ts @@ -62,13 +62,18 @@ const rehypeMomiji: Plugin = (options: Options = { theme: "github-dark-default", return; } + const filename = codeElem.properties["data-remark-code-filename"] ?? ""; + const highlightCode = defaultHighlighter.codeToHtml(rawCode, { lang: supportedLang, theme: theme ?? "github-dark", }); const container = ` -