fix: update markdown-it to v14.2.0

This commit is contained in:
2026-06-09 21:53:13 +02:00
parent 6e899aa899
commit 1385c4bd80
7 changed files with 665 additions and 618 deletions
+2 -2
View File
@@ -10,10 +10,10 @@ jobs:
lint: lint:
runs-on: "ubuntu-latest" runs-on: "ubuntu-latest"
steps: steps:
- uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2 - uses: "actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10" # v6.0.3
- name: "Setup Node.js" - name: "Setup Node.js"
uses: "actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238" # v6.2.0 uses: "actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e" # v6.4.0
with: with:
node-version: "lts/*" node-version: "lts/*"
cache: "npm" cache: "npm"
+2 -2
View File
@@ -17,13 +17,13 @@ jobs:
pull-requests: "write" pull-requests: "write"
id-token: "write" id-token: "write"
steps: steps:
- uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2 - uses: "actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10" # v6.0.3
with: with:
fetch-depth: 0 fetch-depth: 0
persist-credentials: false persist-credentials: false
- name: "Setup Node.js" - name: "Setup Node.js"
uses: "actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238" # v6.2.0 uses: "actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e" # v6.4.0
with: with:
node-version: "lts/*" node-version: "lts/*"
cache: "npm" cache: "npm"
+2 -2
View File
@@ -17,10 +17,10 @@ jobs:
- "macos-latest" - "macos-latest"
runs-on: "${{ matrix.runs-on }}" runs-on: "${{ matrix.runs-on }}"
steps: steps:
- uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2 - uses: "actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10" # v6.0.3
- name: "Setup Node.js" - name: "Setup Node.js"
uses: "actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238" # v6.2.0 uses: "actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e" # v6.4.0
with: with:
node-version: "lts/*" node-version: "lts/*"
cache: "npm" cache: "npm"
+648 -602
View File
File diff suppressed because it is too large Load Diff
+8 -8
View File
@@ -36,20 +36,20 @@
"release": "semantic-release" "release": "semantic-release"
}, },
"dependencies": { "dependencies": {
"markdown-it": "14.1.1", "markdown-it": "14.2.0",
"mime": "4.1.0" "mime": "4.1.0"
}, },
"devDependencies": { "devDependencies": {
"@types/markdown-it": "14.1.2", "@types/markdown-it": "14.1.2",
"@types/node": "25.3.0", "@types/node": "25.9.2",
"eslint-config-conventions": "21.2.2", "eslint-config-conventions": "21.4.0",
"markdownlint": "0.40.0", "markdownlint": "0.40.0",
"markdownlint-cli2": "0.21.0", "markdownlint-cli2": "0.22.1",
"oxfmt": "0.34.0", "oxfmt": "0.54.0",
"oxlint": "1.49.0", "oxlint": "1.69.0",
"oxlint-tsgolint": "0.14.1", "oxlint-tsgolint": "0.23.0",
"semantic-release": "25.0.3", "semantic-release": "25.0.3",
"typescript": "5.9.3" "typescript": "6.0.3"
}, },
"engines": { "engines": {
"node": ">=22.0.0" "node": ">=22.0.0"
+2 -2
View File
@@ -4,7 +4,7 @@ import { getHtmlAttributeRe } from "./markdownlint-rule-helpers/helpers.js"
export const markdownIt = new MarkdownIt({ html: true }) export const markdownIt = new MarkdownIt({ html: true })
export const lineFragmentRe = /^#(?:L\d+(?:C\d+)?-L\d+(?:C\d+)?|L\d+)$/ export const lineFragmentRe = /^#(?:L\d+(?:C\d+)?-L\d+(?:C\d+)?|L\d+)$/u
/** /**
* Converts a Markdown heading into an HTML fragment according to the rules * Converts a Markdown heading into an HTML fragment according to the rules
@@ -125,7 +125,7 @@ export const getMarkdownIdOrAnchorNameFragments = (content) => {
* @example isValidIntegerString("1.0") // false * @example isValidIntegerString("1.0") // false
*/ */
export const isValidIntegerString = (value) => { export const isValidIntegerString = (value) => {
const regex = /^\d+$/ const regex = /^\d+$/u
return regex.test(value) return regex.test(value)
} }
+1
View File
@@ -4,6 +4,7 @@
"target": "ESNext", "target": "ESNext",
"module": "NodeNext", "module": "NodeNext",
"moduleResolution": "NodeNext", "moduleResolution": "NodeNext",
"types": ["@types/node"],
"checkJs": true, "checkJs": true,
"allowJs": true, "allowJs": true,
"noEmit": true, "noEmit": true,