General Notes
rehype-jsoncanvas
const md = await unified() .use(parser) .use(mdast2hast) .use(remarkGfm) .use(remarkRehype) .use(rehypeRaw) .use(rehypePrism) .use(rehypeJsonCanvas, { ssrPath: "public", mdPath: "_content" }) .use(rehypeStringify) .process(markdown);
return md; }
const markdown = await renderMarkdown(content); const rendered = (await markdown.value) as string;