Updated style for MD code view

This commit is contained in:
Daniel Weissmall 2022-11-09 17:35:25 +03:00
parent eb17ae6377
commit 8d3115d878

View File

@ -14,9 +14,8 @@ import Heading from "./typography/Heading";
/* Code */
/* -------------------------------------------------------------------------- */
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
import { dark } from "react-syntax-highlighter/dist/esm/styles/prism";
import { oneLight } from "react-syntax-highlighter/dist/esm/styles/prism";
import Link from "./typography/Link";
import style from "react-syntax-highlighter/dist/esm/styles/hljs/a11y-dark";
export type Props = {
markdown: string;
@ -153,7 +152,7 @@ const Markdown = ({ markdown }: Props) => {
return !inline && match ? (
<SyntaxHighlighter
children={String(children).replace(/\n$/, "")}
style={dark}
style={oneLight}
language={match[1]}
PreTag="div"
/>