underline

This commit is contained in:
Spynder
2025-05-20 00:09:57 +03:00
parent d9bbe4f234
commit 7c363f1730
8 changed files with 468 additions and 188 deletions

View File

@ -9,6 +9,7 @@ import "easymde/dist/easymde.min.css";
import { LanguageSelector } from "@ui";
import { observer } from "mobx-react-lite";
import { EVERY_LANGUAGE, Languages, languageStore, META_LANGUAGE } from "@stores";
import rehypeRaw from "rehype-raw";
const MemoizedSimpleMDE = React.memo(MarkdownEditor);
@ -208,7 +209,7 @@ export const ArticleCreate = observer(() => {
},
}}
>
<ReactMarkdown>{preview}</ReactMarkdown>
<ReactMarkdown rehypePlugins={[rehypeRaw]}>{preview}</ReactMarkdown>
</Box>
</Paper>
</Box>