fix: darkmode issuw with png image (#489)

This commit is contained in:
Kalidou Diagne
2025-07-05 00:39:43 +01:00
committed by GitHub
parent 9706e9dfc9
commit 8fa56b387e

View File

@@ -741,7 +741,8 @@ const REACT_MARKDOWN_CONFIG = (darkMode: boolean): CustomComponents => ({
},
img: ({ ...props }) =>
createMarkdownElement("img", {
className: "w-auto w-auto mx-auto rounded-lg object-cover",
className:
"w-auto w-auto mx-auto rounded-lg object-cover dark:bg-white dark:p-3",
...props,
}),
"footnote-ref": ({ identifier, label }) => {