From 7503969d79c769a6e1de93cc455fa382bae48dad Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Jul 2026 23:34:48 +0000 Subject: [PATCH 1/3] Bump markdown-it-deflist from 3.0.1 to 4.0.0 Bumps [markdown-it-deflist](https://github.com/markdown-it/markdown-it-deflist) from 3.0.1 to 4.0.0. - [Changelog](https://github.com/markdown-it/markdown-it-deflist/blob/master/CHANGELOG.md) - [Commits](https://github.com/markdown-it/markdown-it-deflist/compare/3.0.1...4.0.0) --- updated-dependencies: - dependency-name: markdown-it-deflist dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fbcc254..80aad9e 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "markdown-it-abbr": "^2.0.0", "markdown-it-anchor": "^9.0.1", "markdown-it-attrs": "^5.0.0", - "markdown-it-deflist": "^3.0.0", + "markdown-it-deflist": "^4.0.0", "markdown-it-emoji": "^3.0.0", "markdown-it-footnote": "^4.0.0", "markdown-it-highlightjs": "^4.1.0", From 5f8898dd8a932c885913aee25d333b80e389690e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 31 Jul 2026 01:17:51 +0000 Subject: [PATCH 2/3] Fix TypeScript errors from @types/markdown-it CJS/ESM type incompatibility The @types/markdown-it package exposes separate ESM and CJS type definitions. Plugins like @types/markdown-it-footnote and markdown-it-attrs use require('markdown-it') resolving to CJS types, while the project's ESM imports get different ESM types. This causes incompatible .use() call types. Add // @ts-ignore comments before the affected .use() calls, consistent with the existing pattern used for other plugins in the file. --- lib/build-pages/page-builders/md/get-md.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/build-pages/page-builders/md/get-md.js b/lib/build-pages/page-builders/md/get-md.js index a2f41a3..78101a9 100644 --- a/lib/build-pages/page-builders/md/get-md.js +++ b/lib/build-pages/page-builders/md/get-md.js @@ -39,6 +39,7 @@ export async function getMd (settingsPath = null) { const md = markdownIt(mdOpts) .use(markdownItSub) .use(markdownItSup) + // @ts-ignore .use(markdownItFootnote) .use(markdownItDeflist) .use(markdownItEmoji) @@ -47,6 +48,7 @@ export async function getMd (settingsPath = null) { .use(markdownItAbbr) .use(markdownItTaskList) .use(markdownItAnchor) + // @ts-ignore .use(markdownItAttrs) .use(markdownItTOC, { includeLevel: [1, 2, 3], From cadf1fe289e8cbe77b054912f983fcf93343efdb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 31 Jul 2026 01:29:25 +0000 Subject: [PATCH 3/3] Use @ts-expect-error instead of @ts-ignore --- lib/build-pages/page-builders/md/get-md.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/build-pages/page-builders/md/get-md.js b/lib/build-pages/page-builders/md/get-md.js index 78101a9..a93a0b4 100644 --- a/lib/build-pages/page-builders/md/get-md.js +++ b/lib/build-pages/page-builders/md/get-md.js @@ -39,7 +39,7 @@ export async function getMd (settingsPath = null) { const md = markdownIt(mdOpts) .use(markdownItSub) .use(markdownItSup) - // @ts-ignore + // @ts-expect-error .use(markdownItFootnote) .use(markdownItDeflist) .use(markdownItEmoji) @@ -48,7 +48,7 @@ export async function getMd (settingsPath = null) { .use(markdownItAbbr) .use(markdownItTaskList) .use(markdownItAnchor) - // @ts-ignore + // @ts-expect-error .use(markdownItAttrs) .use(markdownItTOC, { includeLevel: [1, 2, 3],