Compare commits

..

No commits in common. "bf9403ad8452e661d969ccbd80ba6de541dad55a" and "5af131b840bf5c6f475590e60fab68bb5b01bd4b" have entirely different histories.

8 changed files with 1962 additions and 1645 deletions

View File

@ -13,7 +13,7 @@ jobs:
- uses: "actions/checkout@v4.1.1" - uses: "actions/checkout@v4.1.1"
- name: "Setup Node.js" - name: "Setup Node.js"
uses: "actions/setup-node@v4.0.2" uses: "actions/setup-node@v4.0.1"
with: with:
node-version: "lts/*" node-version: "lts/*"
cache: "npm" cache: "npm"

View File

@ -19,7 +19,7 @@ jobs:
persist-credentials: false persist-credentials: false
- name: "Setup Node.js" - name: "Setup Node.js"
uses: "actions/setup-node@v4.0.2" uses: "actions/setup-node@v4.0.1"
with: with:
node-version: "lts/*" node-version: "lts/*"
cache: "npm" cache: "npm"

View File

@ -13,7 +13,7 @@ jobs:
- uses: "actions/checkout@v4.1.1" - uses: "actions/checkout@v4.1.1"
- name: "Setup Node.js" - name: "Setup Node.js"
uses: "actions/setup-node@v4.0.2" uses: "actions/setup-node@v4.0.1"
with: with:
node-version: "lts/*" node-version: "lts/*"
cache: "npm" cache: "npm"

View File

@ -20,6 +20,6 @@
"noUncheckedIndexedAccess": true, "noUncheckedIndexedAccess": true,
"noUnusedLocals": true, "noUnusedLocals": true,
"noUnusedParameters": true, "noUnusedParameters": true,
"forceConsistentCasingInFileNames": true "forceConsistentCasingInFileNames": true,
} },
} }

3562
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -44,28 +44,28 @@
"postpublish": "pinst --enable" "postpublish": "pinst --enable"
}, },
"dependencies": { "dependencies": {
"markdown-it": "14.1.0" "markdown-it": "14.0.0"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "19.1.0", "@commitlint/cli": "18.6.0",
"@commitlint/config-conventional": "19.1.0", "@commitlint/config-conventional": "18.6.0",
"@types/markdown-it": "14.0.0", "@types/markdown-it": "13.0.7",
"@types/node": "20.12.5", "@types/node": "20.11.10",
"editorconfig-checker": "5.1.5", "editorconfig-checker": "5.1.2",
"eslint": "8.56.0", "eslint": "8.56.0",
"eslint-config-conventions": "14.1.0", "eslint-config-conventions": "13.1.0",
"eslint-config-prettier": "9.1.0", "eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1", "eslint-plugin-import": "2.29.1",
"eslint-plugin-prettier": "5.1.3", "eslint-plugin-prettier": "5.1.3",
"eslint-plugin-promise": "6.1.1", "eslint-plugin-promise": "6.1.1",
"eslint-plugin-unicorn": "51.0.1", "eslint-plugin-unicorn": "50.0.1",
"husky": "9.0.11", "husky": "9.0.7",
"lint-staged": "15.2.2", "lint-staged": "15.2.0",
"markdownlint": "0.34.0", "markdownlint": "0.33.0",
"markdownlint-cli2": "0.13.0", "markdownlint-cli2": "0.12.1",
"pinst": "3.0.0", "pinst": "3.0.0",
"prettier": "3.2.5", "prettier": "3.2.4",
"semantic-release": "23.0.7", "semantic-release": "23.0.0",
"typescript": "5.4.4" "typescript": "5.3.3"
} }
} }

View File

@ -22,7 +22,6 @@ const customRule = {
names: ["relative-links"], names: ["relative-links"],
description: "Relative links should be valid", description: "Relative links should be valid",
tags: ["links"], tags: ["links"],
parser: "markdownit",
function: (params, onError) => { function: (params, onError) => {
filterTokens(params, "inline", (token) => { filterTokens(params, "inline", (token) => {
const children = token.children ?? [] const children = token.children ?? []

View File

@ -15,7 +15,7 @@
* @returns {void} * @returns {void}
*/ */
const filterTokens = (params, type, handler) => { const filterTokens = (params, type, handler) => {
for (const token of params.parsers.markdownit.tokens) { for (const token of params.tokens) {
if (token.type === type) { if (token.type === type) {
handler(token) handler(token)
} }