2025-03-04 15:20:17 +08:00
|
|
|
import { Editor } from "@bytemd/react";
|
2025-02-13 15:54:18 +08:00
|
|
|
|
2025-03-04 15:20:17 +08:00
|
|
|
export default function MyMarkdownEdit({ value = '', onChange }: { value?: string; onChange?: (val: string) => void }) {
|
2025-02-13 15:54:18 +08:00
|
|
|
return (
|
2025-03-04 15:20:17 +08:00
|
|
|
<Editor
|
|
|
|
value={value}
|
|
|
|
onChange={onChange}
|
|
|
|
// plugins={plugins}
|
|
|
|
/>
|
2025-02-13 15:54:18 +08:00
|
|
|
)
|
|
|
|
}
|