@uiw/react-md-editor 3.17.2 → 3.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/mdeditor.css +2 -1
- package/dist/mdeditor.js +876 -47
- package/dist/mdeditor.min.css +1 -1
- package/dist/mdeditor.min.js +1 -1
- package/esm/Context.d.ts +1 -0
- package/esm/Editor.d.ts +2 -0
- package/esm/Editor.js +20 -6
- package/esm/Editor.js.map +4 -3
- package/lib/Context.d.ts +1 -0
- package/lib/Editor.d.ts +2 -0
- package/lib/Editor.js +23 -7
- package/lib/Editor.js.map +5 -4
- package/package.json +1 -1
- package/src/Editor.tsx +24 -12
package/README.md
CHANGED
|
@@ -654,6 +654,9 @@ Inherit custom color variables by adding [`.wmde-markdown-var`](https://github.c
|
|
|
654
654
|
- `textareaProps?: TextareaHTMLAttributes`: Set the `textarea` related props.
|
|
655
655
|
- ~~`renderTextarea?: (props, opts) => JSX.Element;`~~: `@deprecated` Please use ~~`renderTextarea`~~ -> `components`. Use div to replace TextArea or re-render TextArea. [#193](https://github.com/uiwjs/react-md-editor/issues/193)
|
|
656
656
|
- `components`: re-render textarea/toolbar element. [#419](https://github.com/uiwjs/react-md-editor/issues/419)
|
|
657
|
+
- `textarea` Use div to replace TextArea or re-render TextArea
|
|
658
|
+
- `toolbar` Override the default command element. _`toolbar`_ < _`command[].render`_
|
|
659
|
+
- `preview` Custom markdown preview. [#429](https://github.com/uiwjs/react-md-editor/issues/429)
|
|
657
660
|
- `height?: number=200`: The height of the editor. ️⚠️ `Dragbar` is invalid when **`height`** parameter percentage.
|
|
658
661
|
- `visibleDragbar?: boolean=true`: Show drag and drop tool. Set the height of the editor.
|
|
659
662
|
- `highlightEnable?: boolean=true`: Disable editing area code highlighting. The value is `false`, which increases the editing speed.
|
package/dist/mdeditor.css
CHANGED
|
@@ -866,7 +866,8 @@ body[data-color-mode*='light'] {
|
|
|
866
866
|
.wmde-markdown .task-list-item .handle {
|
|
867
867
|
display: none;
|
|
868
868
|
}
|
|
869
|
-
.wmde-markdown .task-list-item-checkbox
|
|
869
|
+
.wmde-markdown .task-list-item-checkbox,
|
|
870
|
+
.wmde-markdown .contains-task-list input[type='checkbox'] {
|
|
870
871
|
margin: 0 0.2em 0.25em -1.6em;
|
|
871
872
|
vertical-align: middle;
|
|
872
873
|
}
|