fix: font size error

This commit is contained in:
Hk-Gosuto 2023-12-07 12:36:07 +08:00
parent 02abc42682
commit 148f763769

View File

@ -123,7 +123,7 @@ function _MarkDownContent(props: { content: string; imageBase64?: string }) {
); );
return ( return (
<div> <div style={{ fontSize: "inherit" }}>
{props.imageBase64 && <img src={props.imageBase64} alt="" />} {props.imageBase64 && <img src={props.imageBase64} alt="" />}
<ReactMarkdown <ReactMarkdown
remarkPlugins={[RemarkMath, RemarkGfm, RemarkBreaks]} remarkPlugins={[RemarkMath, RemarkGfm, RemarkBreaks]}
@ -167,7 +167,7 @@ export function Markdown(
} & React.DOMAttributes<HTMLDivElement>, } & React.DOMAttributes<HTMLDivElement>,
) { ) {
const mdRef = useRef<HTMLDivElement>(null); const mdRef = useRef<HTMLDivElement>(null);
console.log("[fontSize]", props.fontSize);
return ( return (
<div <div
className="markdown-body" className="markdown-body"