其他静态blog
https://github.com/bytedance/bytemd
import gfm from '@bytemd/plugin-gfm'
import { Editor, Viewer } from '@bytemd/react'
const plugins = [
gfm(),
// Add more plugins here
]
const App = () => {
const [value, setValue] = useState('')
return (
<Editor
value={value}
plugins={plugins}
onChange={(v) => {
setValue(v)
}}
/>
)
}