v3.25.0
Documentation v3.25.0: https://raw.githack.com/uiwjs/react-md-editor/7b6ad20/index.html
Comparing Changes: v3.24.1...v3.25.0
npm i @uiw/react-md-editor@3.25.0
- 📖 doc: Update README.md a3f09f3 @jaywcjlove
- 🌍 website: fix coverage status badges url error. bc4be08 @jaywcjlove
- 🌟 feat: add no highlight component. (#586) f471fb3 @jaywcjlove
- 💄 chore(deps): update dependency @uiw/react-markdown-preview to ^4.2.1 7d5e249 @jaywcjlove
Remove Code Highlight
The following example can help you exclude code highlighting code from being included in the bundle. @uiw/react-md-editor/nohighlight
component does not contain the code highlighting package, rehype-prism-plus
, highlightEnable
and showLineNumbers
functions will no longer work. (#586)highlight line
import React from "react";
import MDEditor from '@uiw/react-md-editor/nohighlight';
const code = `**Hello world!!!**
\`\`\`js
function demo() {}
\`\`\`
`
export default function App() {
const [value, setValue] = React.useState(code);
return (
<div className="container">
<MDEditor
value={value}
onChange={setValue}
/>
<MDEditor.Markdown source={value} style={{ whiteSpace: 'pre-wrap' }} />
</div>
);
}