fix: support solidity syntax highlight (#489)
This commit is contained in:
parent
ae9b297d32
commit
104ff96844
|
|
@ -6,6 +6,7 @@ import { toast } from "react-hot-toast"
|
|||
import { Element } from "react-scroll"
|
||||
import { refractor } from "refractor"
|
||||
import jsx from "refractor/lang/jsx"
|
||||
import solidity from "refractor/lang/solidity"
|
||||
import tsx from "refractor/lang/tsx"
|
||||
import rehypeAutolinkHeadings from "rehype-autolink-headings"
|
||||
import rehypeInferDescriptionMeta from "rehype-infer-description-meta"
|
||||
|
|
@ -73,6 +74,7 @@ export type Rendered = {
|
|||
refractor.alias("html", ["svelte", "vue"])
|
||||
refractor.register(tsx)
|
||||
refractor.register(jsx)
|
||||
refractor.register(solidity)
|
||||
|
||||
const rehypePrism = rehypePrismGenerator(refractor)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue