feat: markdown -> html and then display in editor

This commit is contained in:
Pihkaal
2024-09-13 13:51:18 +02:00
parent d2ae84846e
commit 8a209ede07
7 changed files with 106 additions and 6 deletions

View File

@@ -19,6 +19,15 @@ export const NvimEditor = (props: { content: string | undefined }) => {
}
}
return (
<div className="flex w-full justify-center">
<div
className="plain-html"
dangerouslySetInnerHTML={{ __html: props.content ?? "" }}
/>
</div>
);
return (
<table>
<tbody>