mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-05-04 10:33:47 +01:00
feat(website): add gemoji support
This commit is contained in:
parent
f7942cff93
commit
bf3c2339fe
3 changed files with 4 additions and 1 deletions
Binary file not shown.
|
@ -46,6 +46,7 @@
|
|||
"rehype-raw": "^7.0.0",
|
||||
"rehype-sanitize": "^6.0.0",
|
||||
"rehype-stringify": "^10.0.0",
|
||||
"remark-gemoji": "^8.0.0",
|
||||
"remark-gfm": "^4.0.0",
|
||||
"remark-parse": "^11.0.0",
|
||||
"remark-rehype": "^11.1.0",
|
||||
|
|
|
@ -3,10 +3,11 @@ import { unified } from "unified"
|
|||
import type { PageServerLoad } from "./$types"
|
||||
import remarkParse from "remark-parse"
|
||||
import remarkRehype from "remark-rehype"
|
||||
import remarkGfm from "remark-gfm"
|
||||
import remarkGemoji from "remark-gemoji"
|
||||
import rehypeSanitize from "rehype-sanitize"
|
||||
import rehypeStringify from "rehype-stringify"
|
||||
import rehypeRaw from "rehype-raw"
|
||||
import remarkGfm from "remark-gfm"
|
||||
import rehypeShiki from "@shikijs/rehype"
|
||||
import { createCssVariablesTheme } from "shiki"
|
||||
|
||||
|
@ -45,6 +46,7 @@ export const load: PageServerLoad = async ({ parent }) => {
|
|||
const file = await unified()
|
||||
.use(remarkParse)
|
||||
.use(remarkGfm)
|
||||
.use(remarkGemoji)
|
||||
.use(remarkRehype, { allowDangerousHtml: true })
|
||||
.use(rehypeRaw)
|
||||
.use(rehypeSanitize)
|
||||
|
|
Loading…
Add table
Reference in a new issue