chore: update markedjs
This commit is contained in:
14
package.json
14
package.json
@@ -70,7 +70,7 @@
|
||||
"@babel/plugin-transform-typescript": "7.18.12",
|
||||
"@babel/types": "*",
|
||||
"@fastify/cookie": "8.0.0",
|
||||
"@fastify/multipart": "7.1.0",
|
||||
"@fastify/multipart": "7.1.1",
|
||||
"@fastify/static": "6.5.0",
|
||||
"@nestjs/common": "9.0.11",
|
||||
"@nestjs/core": "9.0.11",
|
||||
@@ -113,7 +113,7 @@
|
||||
"linkedom": "0.14.12",
|
||||
"lodash": "*",
|
||||
"lru-cache": "7.14.0",
|
||||
"marked": "4.0.18",
|
||||
"marked": "4.0.19",
|
||||
"mime-types": "*",
|
||||
"mkdirp": "*",
|
||||
"mongoose": "6.5.3",
|
||||
@@ -137,7 +137,7 @@
|
||||
"vm2": "3.9.10",
|
||||
"wildcard-match": "5.1.2",
|
||||
"xss": "1.0.14",
|
||||
"zx-cjs": "6.1.0"
|
||||
"zx-cjs": "7.0.7-0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@innei/eslint-config-ts": "latest",
|
||||
@@ -155,7 +155,7 @@
|
||||
"@types/jest": "28.1.8",
|
||||
"@types/js-yaml": "4.0.5",
|
||||
"@types/lodash": "4.14.184",
|
||||
"@types/marked": "4.0.3",
|
||||
"@types/marked": "4.0.6",
|
||||
"@types/mime-types": "2.1.1",
|
||||
"@types/mongoose-aggregate-paginate-v2": "1.0.5",
|
||||
"@types/node": "16.11.56",
|
||||
@@ -171,7 +171,7 @@
|
||||
"eslint-plugin-unused-imports": "2.0.0",
|
||||
"husky": "8.0.1",
|
||||
"ioredis": "5.2.3",
|
||||
"jest": "29.0.0",
|
||||
"jest": "29.0.1",
|
||||
"lint-staged": "13.0.3",
|
||||
"prettier": "2.7.1",
|
||||
"rimraf": "3.0.2",
|
||||
@@ -179,14 +179,14 @@
|
||||
"ts-jest": "28.0.8",
|
||||
"ts-node": "10.9.1",
|
||||
"tsconfig-paths": "4.1.0",
|
||||
"typescript": "4.7.4"
|
||||
"typescript": "4.8.2"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"mongodb-memory-server": "8.9.0",
|
||||
"redis-memory-server": "0.5.0"
|
||||
},
|
||||
"resolutions": {
|
||||
"typescript": "4.7.4",
|
||||
"typescript": "4.8.2",
|
||||
"ioredis": "5.2.3",
|
||||
"webpack": "5.74.0",
|
||||
"semver": "7.3.7"
|
||||
|
||||
823
pnpm-lock.yaml
generated
823
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -336,11 +336,10 @@ ${text.trim()}
|
||||
},
|
||||
renderer(token) {
|
||||
const { groups, images, paragraph } = token
|
||||
const { params, content, name } = groups
|
||||
const { params, name } = groups
|
||||
|
||||
switch (name) {
|
||||
case 'gallery':
|
||||
// @ts-expect-error
|
||||
return `<div class="container">${this.parser.parseInline(
|
||||
images,
|
||||
)}</div>`
|
||||
@@ -366,8 +365,9 @@ ${text.trim()}
|
||||
type: 'container',
|
||||
raw: match[0],
|
||||
groups,
|
||||
// @ts-expect-error
|
||||
images: this.lexer.inlineTokens(groups.content),
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
images: this.lexer.inlineTokens(groups!.content),
|
||||
// @ts-expect-error
|
||||
paragraph: this.lexer.blockTokens(groups.content),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user