Skip to content

Commit

Permalink
fix: depth is not set when configuring merge
Browse files Browse the repository at this point in the history
  • Loading branch information
imzbf committed Sep 10, 2024
1 parent 5479c99 commit fc0cd1e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@codemirror/lang-markdown": "^6.2.5",
"@codemirror/language-data": "^6.5.1",
"@types/markdown-it": "^14.0.1",
"@vavt/util": "^2.0.0",
"@vavt/util": "^2.1.0",
"codemirror": "^6.0.1",
"copy-to-clipboard": "^3.3.3",
"lru-cache": "^10.2.0",
Expand All @@ -54,7 +54,6 @@
"markdown-it-sub": "^2.0.0",
"markdown-it-sup": "^2.0.0",
"medium-zoom": "^1.1.0",
"punycode": "^2.3.1",
"xss": "^1.0.15"
},
"devDependencies": {
Expand Down
6 changes: 5 additions & 1 deletion packages/MdEditor/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,11 @@ export const configOption: ConfigOption = {
};

export const config: Config = (option) => {
return deepMerge(configOption, option);
return deepMerge(configOption, option, {
excludeKeys(key) {
return /[iI]{1}nstance/.test(key);
}
});
};

/**
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1327,10 +1327,10 @@
resolved "https://registry.npmjs.org/@vavt/markdown-theme/-/markdown-theme-4.2.1.tgz#cc1357fe2a91176c6dcd694517869487de9d388c"
integrity sha512-3F4f8Fg+Sl9YgeC5Wa4Pp2cp1i2WYO1jsUJ1xEptGAlMZC1DvD4GXGgMFlyD37Lou3uhZYF5uVmTq/aztf0X8A==

"@vavt/util@^2.0.0":
version "2.0.0"
resolved "https://registry.npmjs.org/@vavt/util/-/util-2.0.0.tgz#6b10ba13dc5ea7a8fed4548427afd50f3546dc88"
integrity sha512-zf1sY9Gy4jj5SE7FuSTXu7PrUdnKJf0zKvhNLAHWiGg1t8IkMfYwRN5567HcUgZSaSuJ8FR3dr+w6E2XzxoPiQ==
"@vavt/util@^2.1.0":
version "2.1.0"
resolved "https://registry.npmjs.org/@vavt/util/-/util-2.1.0.tgz#b8a28da361675195fd6331a1db7cbfd02f68f590"
integrity sha512-YIfAvArSFVXmWvoF+DEGD0FhkhVNcCtVWWkfYtj76eSrwHh/wuEEFhiEubg1XLNM3tChO8FH8xJCT/hnizjgFQ==

"@vavt/vite-plugin-import-markdown@^1.0.0":
version "1.0.1"
Expand Down Expand Up @@ -3325,7 +3325,7 @@ punycode.js@^2.3.1:
resolved "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz#6b53e56ad75588234e79f4affa90972c7dd8cdb7"
integrity sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==

punycode@^2.1.0, punycode@^2.3.1:
punycode@^2.1.0:
version "2.3.1"
resolved "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5"
integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==
Expand Down

0 comments on commit fc0cd1e

Please sign in to comment.