diff --git a/CHANGELOG.md b/CHANGELOG.md index 88b8bc16..4e808150 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. See [standa ### [0.8.23-lastest](https://github.com/Tencent/cherry-markdown/compare/v0.8.23...v0.8.23-lastest) (2023-08-25) +### Bug Fixes + +* [#546](https://github.com/Tencent/cherry-markdown/issues/546) 在node环境下,输入联想会引发报错 ([e24f1e1](https://github.com/Tencent/cherry-markdown/commit/e24f1e1db09b198c63b8b47ab3d16b91eb3bf0a7)) + ### [0.8.23](https://github.com/Tencent/cherry-markdown/compare/v0.8.22...v0.8.23) (2023-08-24) diff --git a/dist/cherry-markdown.core.common.js b/dist/cherry-markdown.core.common.js index d94a6ebd..8670a671 100644 --- a/dist/cherry-markdown.core.common.js +++ b/dist/cherry-markdown.core.common.js @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:12b554034aebbc9b0547bba8a4115ef53088e5ab984759f3fc753f069a913e08 -size 1479280 +oid sha256:cf2251fece7d3075a23d6052644437a332cb6274c3c1aafa07baf5fa2d116a50 +size 1479288 diff --git a/dist/cherry-markdown.core.js b/dist/cherry-markdown.core.js index 2fa42894..d93e7d58 100644 --- a/dist/cherry-markdown.core.js +++ b/dist/cherry-markdown.core.js @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5375059e53b4813628dd02515d459adc923720af1e906a53331334b6defefc59 -size 1479555 +oid sha256:002d73203aa1349bdc3a2495b127f0baee73cb7411b3e9959d1dc90e886e1cff +size 1479563 diff --git a/dist/cherry-markdown.engine.core.common.js b/dist/cherry-markdown.engine.core.common.js index 2765fbdc..a4859eb8 100644 --- a/dist/cherry-markdown.engine.core.common.js +++ b/dist/cherry-markdown.engine.core.common.js @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:48e4304d0ee1d8acfcb21ff1893a64b51eb0e7a9013ea3294fb9324e3349443b -size 360152 +oid sha256:faeef23bd63e5329b9631bde5de4b9ebd9fa2c26beae97d8040437ef4d65f4f6 +size 360160 diff --git a/dist/cherry-markdown.engine.core.esm.js b/dist/cherry-markdown.engine.core.esm.js index f57088e5..3258f4f7 100644 --- a/dist/cherry-markdown.engine.core.esm.js +++ b/dist/cherry-markdown.engine.core.esm.js @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:958b0bdb130a9548acdb2778031f8b8e2336bf64318e619e2f86ce5056a4b6c8 -size 360037 +oid sha256:5a78959fb402e9e2cd7ee60c72fcf3a19ef624cb7685cbb1328bee92e42de193 +size 360045 diff --git a/dist/cherry-markdown.engine.core.js b/dist/cherry-markdown.engine.core.js index 0ac6954f..0492cc31 100644 --- a/dist/cherry-markdown.engine.core.js +++ b/dist/cherry-markdown.engine.core.js @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3c92aafbd886e31fd4d53223bb15c2cabb187d6c9c196ee662e29913c508ad39 -size 360383 +oid sha256:31ee002e7e4e3632193fe53616b8f516b3cdd77575c9a113e3be39e1568ff99c +size 360391 diff --git a/dist/cherry-markdown.esm.js b/dist/cherry-markdown.esm.js index fa0d4217..f2056dcb 100644 --- a/dist/cherry-markdown.esm.js +++ b/dist/cherry-markdown.esm.js @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ccc0c2d086372abb09ed167dbcca0c1abadb6397ff01024e6501b4bcdd7b42b9 -size 4234883 +oid sha256:9df1bb84ed69c84de95cc1994d48747904fa8385ebe8074a1dc9f4d6f0599f5d +size 4234891 diff --git a/dist/cherry-markdown.js b/dist/cherry-markdown.js index 336b1cef..bc4dcefb 100644 --- a/dist/cherry-markdown.js +++ b/dist/cherry-markdown.js @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:afbfea1aebba76d26bd3ec5b514ebb93996596196c8feb0fcd1323a8379dd18f -size 8166133 +oid sha256:186b801f62c9cbf0210f3ac4bfafcb8d607467f96232568f3befabd3153571b2 +size 8166235 diff --git a/dist/cherry-markdown.js.map b/dist/cherry-markdown.js.map index fbfb36a0..eed57a2e 100644 --- a/dist/cherry-markdown.js.map +++ b/dist/cherry-markdown.js.map @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5f63dacb20051ba8c838d03afa186a1b88109e24d888960d6d4eb86a38b3a5cb -size 19713387 +oid sha256:e2ffa704c933d37740d199db27f2e9e692d9e8ef09c1d8b00fe92c4fcd1d390d +size 19713548 diff --git a/dist/cherry-markdown.min.js b/dist/cherry-markdown.min.js index b39326bf..f911db43 100644 --- a/dist/cherry-markdown.min.js +++ b/dist/cherry-markdown.min.js @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2645e2968ecfe43f4814757b28c7c3db6b7990655ec3af38c1f280aa405d3e30 -size 4235193 +oid sha256:ad5c3bf88b66b0e5b03c74832c5891c9ebd11c929d7eecc9297775c57ee0075d +size 4235201 diff --git a/dist/fonts/ch-icon.eot b/dist/fonts/ch-icon.eot index 72fb1d1b..b24398f0 100644 --- a/dist/fonts/ch-icon.eot +++ b/dist/fonts/ch-icon.eot @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9d400bb674675bb908c5f708ab4f29597b5fcc44681528877540bc1b89300435 +oid sha256:b4a3336c51bbcb4cf243762677cca5dc9f1f19d1ac2a76cfe39c2f3e3824875d size 20200 diff --git a/dist/fonts/ch-icon.ttf b/dist/fonts/ch-icon.ttf index 406d26ae..14dcdf92 100644 --- a/dist/fonts/ch-icon.ttf +++ b/dist/fonts/ch-icon.ttf @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7a5713b8c2f43b263d5a777f5c6940a7aae3fc5c4b567881ec7fc252d05ec9d7 +oid sha256:3ce4cd7d9a865cc428730f2748c07eaf74c8bb9e11db8103ac08523dcb35861a size 20036 diff --git a/dist/fonts/ch-icon.woff b/dist/fonts/ch-icon.woff index 23806adb..1bb759db 100644 --- a/dist/fonts/ch-icon.woff +++ b/dist/fonts/ch-icon.woff @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ea060d0829c3d73e2fd9d2b24f9e026fb88d3df73f5c3b56612f55daa68f77eb +oid sha256:f75a0607aaced352fb9ffaf2cef034b459cf4562a6843296968200177253b450 size 11652 diff --git a/dist/fonts/ch-icon.woff2 b/dist/fonts/ch-icon.woff2 index d2295fd7..38bd321b 100644 --- a/dist/fonts/ch-icon.woff2 +++ b/dist/fonts/ch-icon.woff2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8ac3c75b3f65d5d42a51518da7b572711db2a8a257d21e50245dc97743b74b69 -size 9924 +oid sha256:e5a610549e2f93ba81a004d72fd1118eb63c498f1a16f990e389302588aa67c1 +size 9908 diff --git a/package.json b/package.json index 3d28517b..15db9ac5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "cherry-markdown", "license": "Apache-2.0", - "version": "0.8.23", + "version": "0.8.23-lastest", "description": "a new markdown editor", "repository": { "type": "git", diff --git a/src/core/hooks/Suggester.js b/src/core/hooks/Suggester.js index 561c9455..d4b05be9 100644 --- a/src/core/hooks/Suggester.js +++ b/src/core/hooks/Suggester.js @@ -79,6 +79,10 @@ export default class Suggester extends SyntaxBase { } afterInit(callback) { + // node环境下直接跳过输入联想 + if (!isBrowser()) { + return; + } if (typeof callback === 'function') { callback(); }