Skip to content

yamader/react-mfm

Repository files navigation

react-mfm

Note

  • next@14.2以降,RSCのビルドがShikiのなんかでコケる

Usage

See example/.

import Mfm from "react-mfm"
import "react-mfm/style.css"
import "katex/dist/katex.min.css" // to support Formula

const text = \`
  <center>
    **hello, world**
  </center>
\`.trim()

export default function Page() {
  return <Mfm text={text} />
}