From 7875a793b3daf4e73244e25b0907ee666f3298a0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 15 May 2024 13:46:26 -0400 Subject: [PATCH] Update dependency @types/markdown-it to v14 (#2470) * Update dependency @types/markdown-it to v14 * Fixing markdown import. --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dessalines --- package.json | 2 +- pnpm-lock.yaml | 28 ++++++++++++++-------------- src/shared/markdown.ts | 3 +-- 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 0a28e40c..e58d8ee3 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,7 @@ "@types/express": "^4.17.21", "@types/html-to-text": "^9.0.4", "@types/lodash.isequal": "^4.5.8", - "@types/markdown-it": "^13.0.7", + "@types/markdown-it": "^14.0.0", "@types/markdown-it-container": "^2.0.9", "@types/node": "^20.11.30", "@types/path-browserify": "^1.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1f7424c4..7b32e971 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -229,8 +229,8 @@ importers: specifier: ^4.5.8 version: 4.5.8 '@types/markdown-it': - specifier: ^13.0.7 - version: 13.0.8 + specifier: ^14.0.0 + version: 14.1.1 '@types/markdown-it-container': specifier: ^2.0.9 version: 2.0.10 @@ -1300,8 +1300,8 @@ packages: '@types/json-schema@7.0.15': resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} - '@types/linkify-it@3.0.5': - resolution: {integrity: sha512-yg6E+u0/+Zjva+buc3EIb+29XEg4wltq7cSmd4Uc2EE/1nUVmxyzpX6gUXD0V8jIrG0r7YeOGVIbYRkxeooCtw==} + '@types/linkify-it@5.0.0': + resolution: {integrity: sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==} '@types/lodash.isequal@4.5.8': resolution: {integrity: sha512-uput6pg4E/tj2LGxCZo9+y27JNyB2OZuuI/T5F+ylVDYuqICLG2/ktjxx0v6GvVntAf8TvEzeQLcV0ffRirXuA==} @@ -1312,11 +1312,11 @@ packages: '@types/markdown-it-container@2.0.10': resolution: {integrity: sha512-zv+YxrlSYRq51e9kzm3orv4OvF4U79Ll1OyplNXr00o4ZC/8PukJk/jEWH7CnsMtrSWZlyv0czhz42jm9J4uLw==} - '@types/markdown-it@13.0.8': - resolution: {integrity: sha512-V+KmpgiipS+zoypeUSS9ojesWtY/0k4XfqcK2fnVrX/qInJhX7rsCxZ/rygiPH2zxlPPrhfuW0I6ddMcWTKLsg==} + '@types/markdown-it@14.1.1': + resolution: {integrity: sha512-4NpsnpYl2Gt1ljyBGrKMxFYAYvpqbnnkgP/i/g+NLpjEUa3obn1XJCur9YbEXKDAkaXqsR1LbDnGEJ0MmKFxfg==} - '@types/mdurl@1.0.5': - resolution: {integrity: sha512-6L6VymKTzYSrEf4Nev4Xa1LCHKrlTlYCBMTlQKFuddo1CvQcE52I0mwfOJayueUC7MJuXOeHTcIU683lzd0cUA==} + '@types/mdurl@2.0.0': + resolution: {integrity: sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==} '@types/mime@1.3.5': resolution: {integrity: sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==} @@ -5908,7 +5908,7 @@ snapshots: '@types/json-schema@7.0.15': {} - '@types/linkify-it@3.0.5': {} + '@types/linkify-it@5.0.0': {} '@types/lodash.isequal@4.5.8': dependencies: @@ -5918,14 +5918,14 @@ snapshots: '@types/markdown-it-container@2.0.10': dependencies: - '@types/markdown-it': 13.0.8 + '@types/markdown-it': 14.1.1 - '@types/markdown-it@13.0.8': + '@types/markdown-it@14.1.1': dependencies: - '@types/linkify-it': 3.0.5 - '@types/mdurl': 1.0.5 + '@types/linkify-it': 5.0.0 + '@types/mdurl': 2.0.0 - '@types/mdurl@1.0.5': {} + '@types/mdurl@2.0.0': {} '@types/mime@1.3.5': {} diff --git a/src/shared/markdown.ts b/src/shared/markdown.ts index 6ab35ee3..9e510bfc 100644 --- a/src/shared/markdown.ts +++ b/src/shared/markdown.ts @@ -15,8 +15,7 @@ import markdown_it_ruby from "markdown-it-ruby"; import markdown_it_sub from "markdown-it-sub"; import markdown_it_sup from "markdown-it-sup"; import markdown_it_highlightjs from "markdown-it-highlightjs/core"; -import Renderer from "markdown-it/lib/renderer"; -import Token from "markdown-it/lib/token"; +import { Renderer, Token } from "markdown-it"; import { instanceLinkRegex, relTags } from "./config"; import { lazyHighlightjs } from "./lazy-highlightjs";