#19 ひとまづ表示のみ

This commit is contained in:
2025-06-08 05:51:03 +09:00
parent 5a3f79e7c7
commit 39dce3a39f
11 changed files with 1294 additions and 145 deletions
@@ -0,0 +1,19 @@
import MdEditor from 'react-markdown-editor-lite'
import 'react-markdown-editor-lite/lib/index.css'
import { marked } from 'marked'
type Props = { value: string
onChange: (text: string) => void
onSave: () => void }
const WikiEditor = ({ value, onChange, onSave }) => (
<div className="wiki-editor">
<MdEditor value={value}
style={{ height: '500px' }}
renderHTML={text => marked (text)} />
<button onClick={onSave}></button>
</div>)
export default WikiEditor