@uiw/react-md-editor 3.17.1 → 3.18.1

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 CHANGED
@@ -329,6 +329,19 @@ export default function App() {
329
329
  }
330
330
  ```
331
331
 
332
+ ### Editor Font Size
333
+
334
+ [![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/markdown-editor-for-react-uiwjs-react-md-editor-issues-425-2epmgh?fontsize=14&hidenavigation=1&theme=dark)
335
+ [![#425](https://img.shields.io/github/issues/detail/state/uiwjs/react-md-editor/425)](https://github.com/uiwjs/react-md-editor/issues/425#issuecomment-1209514536)
336
+
337
+ ```css
338
+ .w-md-editor-text-pre > code,
339
+ .w-md-editor-text-input {
340
+ font-size: 23px !important;
341
+ line-height: 24px !important;
342
+ }
343
+ ```
344
+
332
345
  ### Preview Markdown
333
346
 
334
347
  [![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/react-md-editor-preview-markdown-vrucl?fontsize=14&hidenavigation=1&theme=dark)
@@ -566,9 +579,11 @@ ReactDOM.render(<App />, document.getElementById("container"));
566
579
 
567
580
  ### Support Nextjs
568
581
 
569
- Use examples in [nextjs](https://nextjs.org/). [#52](https://github.com/uiwjs/react-md-editor/issues/52#issuecomment-848969341) [#224](https://github.com/uiwjs/react-md-editor/issues/224#issuecomment-901112079)
582
+ Use examples in [nextjs](https://nextjs.org/). [`#52`](https://github.com/uiwjs/react-md-editor/issues/52#issuecomment-848969341) [`#224`](https://github.com/uiwjs/react-md-editor/issues/224#issuecomment-901112079)
570
583
 
571
584
  [![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/nextjs-example-react-md-editor-qjhn7?fontsize=14&hidenavigation=1&theme=dark) [![Open in StackBlitz](https://img.shields.io/badge/Open%20In-StackBlitz-green)](https://stackblitz.com/edit/nextjs-react-md-editor?embed=1&file=pages/index.js&hideExplorer=1&hideNavigation=1&theme=dark)
585
+ [![#52](https://img.shields.io/github/issues/detail/state/uiwjs/react-md-editor/52)](https://github.com/uiwjs/react-md-editor/issues/52#issuecomment-848969341)
586
+ [![#224](https://img.shields.io/github/issues/detail/state/uiwjs/react-md-editor/224)](https://github.com/uiwjs/react-md-editor/issues/224#issuecomment-901112079)
572
587
 
573
588
  ```bash
574
589
  npm install next-remove-imports
@@ -639,6 +654,9 @@ Inherit custom color variables by adding [`.wmde-markdown-var`](https://github.c
639
654
  - `textareaProps?: TextareaHTMLAttributes`: Set the `textarea` related props.
640
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)
641
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)
642
660
  - `height?: number=200`: The height of the editor. ️⚠️ `Dragbar` is invalid when **`height`** parameter percentage.
643
661
  - `visibleDragbar?: boolean=true`: Show drag and drop tool. Set the height of the editor.
644
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
  }
@@ -1166,7 +1167,7 @@ body[data-color-mode*='light'] {
1166
1167
  .w-md-editor-toolbar {
1167
1168
  border-bottom: 1px solid var(--color-border-default);
1168
1169
  background-color: var(--color-canvas-default);
1169
- padding: 5px;
1170
+ padding: 5px 5px;
1170
1171
  display: flex;
1171
1172
  justify-content: space-between;
1172
1173
  align-items: center;
@@ -1186,11 +1187,16 @@ body[data-color-mode*='light'] {
1186
1187
  margin: 0;
1187
1188
  padding: 0;
1188
1189
  list-style: none;
1190
+ line-height: normal;
1191
+ line-height: initial;
1189
1192
  }
1190
1193
  .w-md-editor-toolbar li {
1191
1194
  display: inline-block;
1192
1195
  font-size: 14px;
1193
1196
  }
1197
+ .w-md-editor-toolbar li + li {
1198
+ margin: 0;
1199
+ }
1194
1200
  .w-md-editor-toolbar li > button {
1195
1201
  border: none;
1196
1202
  height: 20px;