Releases: uiwjs/react-markdown-editor
v5.3.1
Documentation v5.3.1: https://raw.githack.com/uiwjs/react-markdown-editor/d9c9cd9/index.html
Comparing Changes: v5.3.0...v5.3.1
npm i @uiw/react-markdown-editor@5.3.1
- 📈 perf: optimize refs. 6d1ae5b @jaywcjlove
v5.3.0
Documentation v5.3.0: https://raw.githack.com/uiwjs/react-markdown-editor/df9e792/index.html
Comparing Changes: v5.2.1...v5.3.0
npm i @uiw/react-markdown-editor@5.3.0
- 🌟 feat: add
renderPreview
props. af186e0 @jaywcjlove
v5.2.1
Documentation v5.2.1: https://raw.githack.com/uiwjs/react-markdown-editor/8e3d1e2/index.html
Comparing Changes: v5.2.0...v5.2.1
npm i @uiw/react-markdown-editor@5.2.1
- 🌍 website: add backToUp button. f4355cc @jaywcjlove
- 🐞 fix: fix ref issue. (#189) 2a764ff @jaywcjlove
- 🌍 website: update example. 3a230f9 @jaywcjlove
- 💄 chore: update workflows config. 10e5f91 @jaywcjlove
v5.2.0
Documentation v5.2.0: https://raw.githack.com/uiwjs/react-markdown-editor/b00f478/index.html
Comparing Changes: v5.1.1...v5.2.0
npm i @uiw/react-markdown-editor@5.2.0
- 🌟 feat: add
hideToolbar
props (#188). 677d2d9 @jaywcjlove
v5.1.1
Documentation v5.1.1: https://raw.githack.com/uiwjs/react-markdown-editor/b26e9c1/index.html
Comparing Changes: v5.1.0...v5.1.1
npm i @uiw/react-markdown-editor@5.1.1
- 🎨 style: modify redo/undo commend icon style. 15ea9e4 @jaywcjlove
v5.1.0
Documentation v5.1.0: https://raw.githack.com/uiwjs/react-markdown-editor/30ca1b3/index.html
Comparing Changes: v5.0.1...v5.1.0
npm i @uiw/react-markdown-editor@5.1.0
- 📖 doc: Update README.md c36faec @jaywcjlove
- 🌍 website: update footer style. 4c8c025 @jaywcjlove
- 📖 doc: update README.md 56d822e @jaywcjlove
- 🌍 website: update style. eced987 @jaywcjlove
- 🌟 feat: add
redo
,undo
commands. 7f58a33 @jaywcjlove
v5.0.1
Documentation v5.0.1: https://raw.githack.com/uiwjs/react-markdown-editor/2134c81/index.html
Comparing Changes: v5.0.0...v5.0.1
npm i @uiw/react-markdown-editor@5.0.1
- 🎨 style: modify editor style. 6b3fd64 @jaywcjlove
- 💄 chore: update workflows config. 5532f24 @jaywcjlove
v5.0.0
Documentation v5.0.0: https://raw.githack.com/uiwjs/react-markdown-editor/35380f4/index.html
Comparing Changes: v4.0.3...v5.0.0
npm i @uiw/react-markdown-editor@5.0.0
- 🌟 feat: Update
codemirror 6
. 73a7643 @jaywcjlove - 💄 chore: update workflow config. 878f4c3 @jaywcjlove
import MarkdownEditor from '@uiw/react-markdown-editor';
const code = 'console.log("hello world!");';
<MarkdownEditor
value={code}
- onChange={(editor, data, value) => setMarkdown(value)}
+ onChange={(value, viewUpdate) => setMarkdown(value)}
- options={{ }}
+ extensions={[
+ ]}
/>
- export type ButtonHandle = (command: ICommand, props: IMarkdownEditor, options: {
- preview?: HTMLDivElement | null,
- container?: HTMLDivElement | null,
- containerEditor?: HTMLDivElement | null;
- editor?: Editor;
- }) => JSX.Element
+ export type ButtonHandle = (command: ICommand, props: IMarkdownEditor, options: ToolBarProps) => JSX.Element;
export type ICommand = {
icon?: React.ReactElement;
name?: string;
keyCommand?: string;
button?: ButtonHandle | React.ButtonHTMLAttributes<HTMLButtonElement>;
+ execute?: (editor: ReactCodeMirrorRef) => void;
- execute?: (editor: Editor, selection: string, position: Position, opts: {
- preview?: HTMLDivElement | null,
- container?: HTMLDivElement | null,
- }) => void;
}
v4.0.3
Documentation v4.0.3: https://raw.githack.com/uiwjs/react-markdown-editor/6f7a4a0/index.html
Comparing Changes: v4.0.2...v4.0.3
npm i @uiw/react-markdown-editor@4.0.3
- 🌍 website: update theme style. 8090c1f @jaywcjlove
- 💄 chore(deps): update react monorepo to v18 (major) (#174) (#177) c9b822c @jaywcjlove
- 💄 chore: update tsconfig.json 81ebad3 @jaywcjlove
- 🐞 fix: Fix fullscreen command setSize bug in react 18 (#177) 6e3597e @jaywcjlove
v4.0.2
Documentation v4.0.2: https://raw.githack.com/uiwjs/react-markdown-editor/ea192c0/index.html
Comparing Changes: v4.0.1...v4.0.2
npm i @uiw/react-markdown-editor@4.0.2
- 🎨 style: Modify view style. 7026912 @jaywcjlove