fix: edit function of markdown

This commit is contained in:
h z
2024-12-07 12:03:23 +00:00
parent 7eaf37223c
commit a31cec7ef0
6 changed files with 82 additions and 15 deletions

View File

@@ -8,7 +8,7 @@ import { okaidia } from "react-syntax-highlighter/dist/esm/styles/prism";
import "katex/dist/katex.min.css";
import "./MarkdownView.css";
const MarkdownPreview = ({ content, height="auto" }) => {
const MarkdownView = ({ content, height="auto" }) => {
return (
<div className="markdown-preview" style={{height}}>
<ReactMarkdown
@@ -39,4 +39,4 @@ const MarkdownPreview = ({ content, height="auto" }) => {
);
};
export default MarkdownPreview;
export default MarkdownView;