Skip to content

v4.0.0

Choose a tag to compare

@github-actions github-actions released this 17 Mar 13:26
· 125 commits to master since this release

npm bundle size npm version

Documentation v4.0.0: https://raw.githack.com/uiwjs/react-markdown-editor/e8c9177/index.html
Comparing Changes: v3.2.9...v4.0.0

Support dark-mode/night-mode

By default, the dark-mode is automatically switched according to the system. If you need to switch manually, just set the data-color-mode="dark" parameter for html Element.

<html data-color-mode="dark">
document.documentElement.setAttribute('data-color-mode', 'dark')
document.documentElement.setAttribute('data-color-mode', 'light')

Inherit custom color variables by adding .wmde-markdown-var selector.

const Demo = () => {
  return (
    <div>
      <div className="wmde-markdown-var"> </div>
      <MarkdownEditor value="Hello Markdown!" />
    </div>
  )
}