v4.0.0
Documentation v4.0.0: https://raw.githack.com/uiwjs/react-markdown-editor/e8c9177/index.html
Comparing Changes: v3.2.9...v4.0.0
npm i @uiw/[email protected]
- 🌟 feat: support dark-mode style. df14b1c @jaywcjlove
- 📖 doc: Update README.md 58b3fb8 @jaywcjlove
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>
)
}