diff --git a/package.json b/package.json index 07709f2b9d..efd21ac72e 100644 --- a/package.json +++ b/package.json @@ -312,7 +312,7 @@ "@types/koa-send": "^4.1.6", "@types/koa-sslify": "^4.0.6", "@types/koa-useragent": "^2.1.2", - "@types/markdown-it": "14.1.1", + "@types/markdown-it": "14.1.2", "@types/markdown-it-container": "^2.0.11", "@types/markdown-it-emoji": "^3.0.1", "@types/mime-types": "^3.0.1", @@ -392,7 +392,7 @@ "ajv@npm:^8.6.0": "^8.18.0", "ajv@npm:^8.17.1": "^8.18.0", "ajv@npm:~8.13.0": "^8.18.0", - "@types/markdown-it": "14.1.1", + "@types/markdown-it": "14.1.2", "minimatch@npm:^3.0.2": "^3.1.5", "minimatch@npm:^3.0.4": "^3.1.5", "minimatch@npm:^3.1.1": "^3.1.5", diff --git a/shared/editor/rules/mark.ts b/shared/editor/rules/mark.ts index 6138071b45..73df67448e 100644 --- a/shared/editor/rules/mark.ts +++ b/shared/editor/rules/mark.ts @@ -47,7 +47,6 @@ export default function (options: { delim: string; mark: string }) { state.delimiters.push({ marker, length: 0, // disable "rule of 3" length checks meant for emphasis - jump: i, token: state.tokens.length - 1, end: -1, open: scanned.can_open, diff --git a/yarn.lock b/yarn.lock index 84deeb5b27..126f70c5a1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8065,13 +8065,13 @@ __metadata: languageName: node linkType: hard -"@types/markdown-it@npm:14.1.1": - version: 14.1.1 - resolution: "@types/markdown-it@npm:14.1.1" +"@types/markdown-it@npm:14.1.2": + version: 14.1.2 + resolution: "@types/markdown-it@npm:14.1.2" dependencies: "@types/linkify-it": "npm:^5" "@types/mdurl": "npm:^2" - checksum: 10c0/f029e471d6927c78879de8de085302544cd43643e2435775fbe0d49be998d4a23890555b0c090c154925e3a9df01ba48514582671e4f8488d8dcf992e2d155ef + checksum: 10c0/34f709f0476bd4e7b2ba7c3341072a6d532f1f4cb6f70aef371e403af8a08a7c372ba6907ac426bc618d356dab660c5b872791ff6c1ead80c483e0d639c6f127 languageName: node linkType: hard @@ -16920,7 +16920,7 @@ __metadata: "@types/koa-sslify": "npm:^4.0.6" "@types/koa-useragent": "npm:^2.1.2" "@types/mailparser": "npm:^3.4.6" - "@types/markdown-it": "npm:14.1.1" + "@types/markdown-it": "npm:14.1.2" "@types/markdown-it-container": "npm:^2.0.11" "@types/markdown-it-emoji": "npm:^3.0.1" "@types/mime-types": "npm:^3.0.1"