Skip to content

Commit

Permalink
Merge branch 'dev-docs' into docs
Browse files Browse the repository at this point in the history
  • Loading branch information
imzbf committed May 25, 2024
2 parents 7000bea + 4480f1d commit 803ed37
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 13 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "md-editor-rt",
"version": "4.15.3",
"version": "4.15.4",
"keywords": [
"react",
"nextjs",
Expand Down Expand Up @@ -32,7 +32,7 @@
"markdown-it-anchor": "^9.0.1",
"markdown-it-link-attributes": "^4.0.1",
"markdown-it-mark": "^4.0.0",
"md-editor-rt": "^4.15.3",
"md-editor-rt": "^4.15.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-redux": "^7.2.6",
Expand Down
10 changes: 10 additions & 0 deletions public/doc-en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,16 @@ This is the props of `MdPreview`, which is also part of `MdEditor`:

Enable the function of enlarging images.

```html
<MdEditor noImgZoomIn />
```

After version `4.15.4`, it is also possible to disable zooming by setting the class `.not-zoom`.

```markdown
<img class="not-zoom">
```

---

### 😬 customIcon
Expand Down
12 changes: 11 additions & 1 deletion public/doc-zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,17 @@
- **类型**`boolean`
- **默认值**`false`

是否关闭编辑器默认的放大功能(`^4.4.0`
是否关闭编辑器默认的放大功能。

```html
<MdEditor noImgZoomIn />
```

`4.15.4`以后,也可以设置`.not-zoom`来禁用它

```markdown
<img class="not-zoom">
```

---

Expand Down
6 changes: 3 additions & 3 deletions public/preview-en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ The Old Man and the Sea served to reinvigorate Hemingway's literary reputation a

## 📈 Table

| nickname | from |
| -------- | ---------------- |
| zhijian | ChongQing, China |
| THead1 | THead2 | THead3 |
| :-------------- | :---------------: | ---------------: |
| text-align:left | text-align:center | text-align:right |

## 📏 Formula

Expand Down
6 changes: 3 additions & 3 deletions public/preview-zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ export default defineComponent({

## 📈 表格演示

| 昵称 | 来自 |
| ---- | --------- |
| 之间 | 中国-重庆 |
| 表头1 | 表头2 | 表头3 |
| :----- | :------: | -----: |
| 左对齐 | 中间对齐 | 右对齐 |

## 📏 公式

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3593,10 +3593,10 @@ marked@*:
resolved "https://registry.npmjs.org/marked/-/marked-12.0.0.tgz#051ea8c8c7f65148a63003df1499515a2c6de716"
integrity sha512-Vkwtq9rLqXryZnWaQc86+FHLC6tr/fycMfYAhiOIXkrNmeGAyhSxjqu0Rs1i0bBqw5u0S7+lV9fdH2ZSVaoa0w==

md-editor-rt@^4.15.3:
version "4.15.3"
resolved "https://registry.npmjs.org/md-editor-rt/-/md-editor-rt-4.15.3.tgz#22856f49f4e698e20ae69cfd0dc271162e0fc014"
integrity sha512-vvDmAx/wUvZOgInzJmmdw3N59P3jAwXYtWEkJmXHK6tqaXvLuEKWOySL3XApQETtOSh9GtC5w0DdWiJkXc15Xg==
md-editor-rt@^4.15.4:
version "4.15.4"
resolved "https://registry.npmjs.org/md-editor-rt/-/md-editor-rt-4.15.4.tgz#d2b942869c2e2d8daa37990fe5b3fb498c7c2c7f"
integrity sha512-NrtohAvY6472RRjrJH+OgmxYLSpKKOQpFjPhSIH4hFF4cu5RZU6l7vJU4oGWbmyS51dbXIz9F9sOTRpQ3Ntrng==
dependencies:
"@codemirror/lang-markdown" "^6.2.5"
"@codemirror/language-data" "^6.5.1"
Expand Down

0 comments on commit 803ed37

Please sign in to comment.