Open bleschunov opened 1 year ago
Now I use it in this way:
import React, { FC } from "react" import "github-markdown-css" import ReactMarkdown from "react-markdown" import remarkGfm from "remark-gfm" interface MarkdownI { children: string } const Markdown: FC<MarkdownI> = ({ children }) => { return ( <div className='markdown-body'> <ReactMarkdown remarkPlugins={[remarkGfm]}>{children}</ReactMarkdown> </div> ) } export default Markdown
It switches between light and dark themes. How to import only light theme?
Maybe import "github-markdown-css/github-markdown-light"
import "github-markdown-css/github-markdown-light"
In my environment, import "github-markdown-css/github-markdown-light" didn't work, but import "github-markdown-css/github-markdown-light.css"; did.
import "github-markdown-css/github-markdown-light.css";
Now I use it in this way:
It switches between light and dark themes. How to import only light theme?