mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-16 01:01:38 +00:00
fix tailwind dark mode
This commit is contained in:
@ -1,13 +1,14 @@
|
||||
import rehypePrism from '@mapbox/rehype-prism';
|
||||
import clsx from 'clsx';
|
||||
import { createElement, Fragment, memo } from 'react';
|
||||
import rehypeReact from 'rehype-react';
|
||||
import remarkGfm from 'remark-gfm';
|
||||
import remarkParse from 'remark-parse';
|
||||
import remarkRehype from 'remark-rehype';
|
||||
import rehypeHighlight from 'rehype-highlight';
|
||||
import { GistsFile } from 'types';
|
||||
import { unified } from 'unified';
|
||||
import styles from './gists-code.module.css';
|
||||
import '@catppuccin/highlightjs/sass/catppuccin.variables.scss';
|
||||
|
||||
interface Props {
|
||||
file: GistsFile;
|
||||
@ -22,7 +23,7 @@ const GistsCode = ({ file, showFileName = false }: Props) => {
|
||||
.use(remarkParse)
|
||||
.use(remarkRehype)
|
||||
.use(remarkGfm)
|
||||
.use(rehypePrism, { ignoreMissing: true })
|
||||
.use(rehypeHighlight, { ignoreMissing: true })
|
||||
.use(rehypeReact, {
|
||||
createElement,
|
||||
Fragment,
|
||||
|
Reference in New Issue
Block a user