Compare commits

..
5 Commits
Author SHA1 Message Date
theoludwig 4de09bfdc0 fix: use named MarkdownIt type import for markdown-it v15 types
Update markdown-it to v15.0.3 and mime to v4.1.1.

Fixes #21
2026-10-16 19:31:26 +02:00
theoludwig 193e66bc14 fix: update markdown-it to v15.0.1 2026-09-24 15:44:11 +02:00
theoludwig 86308ce34c fix: update markdown-it to v14.3.0 2026-07-25 17:24:49 +08:00
theoludwig be2c1746c2 chore: lint:typescript 2026-07-03 16:51:56 +02:00
theoludwig 21fbd5f963 build(deps): update latest 2026-07-03 16:45:32 +02:00
9 changed files with 1153 additions and 537 deletions

No files matched your search

+2 -2
View File
@@ -10,10 +10,10 @@ jobs:
lint: lint:
runs-on: "ubuntu-latest" runs-on: "ubuntu-latest"
steps: steps:
- uses: "actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10" # v6.0.3 - uses: "actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1" # v7.0.1
- name: "Setup Node.js" - name: "Setup Node.js"
uses: "actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e" # v6.4.0 uses: "actions/setup-node@820762786026740c76f36085b0efc47a31fe5020" # v7.0.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@df4cb1c069e1874edd31b4311f1884172cec0e10" # v6.0.3 - uses: "actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1" # v7.0.1
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@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e" # v6.4.0 uses: "actions/setup-node@820762786026740c76f36085b0efc47a31fe5020" # v7.0.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@df4cb1c069e1874edd31b4311f1884172cec0e10" # v6.0.3 - uses: "actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1" # v7.0.1
- name: "Setup Node.js" - name: "Setup Node.js"
uses: "actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e" # v6.4.0 uses: "actions/setup-node@820762786026740c76f36085b0efc47a31fe5020" # v7.0.0
with: with:
node-version: "lts/*" node-version: "lts/*"
cache: "npm" cache: "npm"
+3
View File
@@ -6,5 +6,8 @@
"browser": true, "browser": true,
"node": true, "node": true,
"shared-node-browser": true "shared-node-browser": true
},
"rules": {
"unicorn/prefer-number-coercion": "off"
} }
} }
+1130 -517
View File
File diff suppressed because it is too large. Load diff
+10 -11
View File
@@ -36,20 +36,19 @@
"release": "semantic-release" "release": "semantic-release"
}, },
"dependencies": { "dependencies": {
"markdown-it": "14.2.0", "markdown-it": "15.0.3",
"mime": "4.1.0" "mime": "4.1.1"
}, },
"devDependencies": { "devDependencies": {
"@types/markdown-it": "14.1.2", "@types/node": "26.6.5",
"@types/node": "25.9.2",
"eslint-config-conventions": "21.4.0", "eslint-config-conventions": "21.4.0",
"markdownlint": "0.40.0", "markdownlint": "0.42.0",
"markdownlint-cli2": "0.22.1", "markdownlint-cli2": "0.23.3",
"oxfmt": "0.54.0", "oxfmt": "0.73.0",
"oxlint": "1.69.0", "oxlint": "1.88.0",
"oxlint-tsgolint": "0.23.0", "oxlint-tsgolint": "7.0.2004",
"semantic-release": "25.0.3", "semantic-release": "25.0.9",
"typescript": "6.0.3" "typescript": "7.0.2"
}, },
"engines": { "engines": {
"node": ">=22.0.0" "node": ">=22.0.0"
+1 -1
View File
@@ -1,4 +1,4 @@
import type MarkdownIt from "markdown-it" import type { MarkdownIt } from "markdown-it"
import type { Rule } from "markdownlint" import type { Rule } from "markdownlint"
declare const relativeLinksRule: Rule declare const relativeLinksRule: Rule
+2 -1
View File
@@ -29,7 +29,8 @@ const relativeLinksRule = {
filterTokens(params, "inline", (token) => { filterTokens(params, "inline", (token) => {
const children = token.children ?? [] const children = token.children ?? []
for (const child of children) { for (const child of children) {
const { type, attrs, lineNumber } = child const { type, lineNumber } = child
const attrs = child.attrs ?? []
/** @type {string | undefined} */ /** @type {string | undefined} */
let hrefSrc let hrefSrc
+1 -1
View File
@@ -9,7 +9,7 @@
"allowJs": true, "allowJs": true,
"noEmit": true, "noEmit": true,
"rootDir": ".", "rootDir": ".",
"skipLibCheck": true, "skipLibCheck": false,
"strict": true, "strict": true,
"allowUnusedLabels": false, "allowUnusedLabels": false,
"allowUnreachableCode": false, "allowUnreachableCode": false,