MCPcopy
hub / github.com/upstash/jstack / highlightCode

Function highlightCode

www/src/components/mdx/code.tsx:70–79  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

68}
69
70async function highlightCode(code: string) {
71 const file = await unified()
72 .use(remarkParse)
73 .use(remarkRehype)
74 .use(rehypePrettyCode)
75 .use(rehypeStringify)
76 .process(code)
77
78 return String(file)
79}
80
81// import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area"
82// import { cn } from "@/lib/utils"

Callers 1

CodeFunction · 0.85

Calls 1

useMethod · 0.80

Tested by

no test coverage detected