Compare commits

...

4 Commits

Author SHA1 Message Date
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
theoludwig 1385c4bd80 fix: update markdown-it to v14.2.0 2026-06-09 21:53:13 +02:00
theoludwig 6e899aa899 docs: fix typo divider 2026-03-12 14:26:17 +01:00
10 changed files with 724 additions and 658 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"
+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"
} }
} }
+1 -1
View File
@@ -53,7 +53,7 @@ awesome.md:3 relative-links Relative links should be valid ["./invalid.txt" shou
- Ignore external links and absolute paths as it only checks relative links (e.g: `https://example.com/` or `/absolute/path.png`). - Ignore external links and absolute paths as it only checks relative links (e.g: `https://example.com/` or `/absolute/path.png`).
- If necessary, absolute paths can be validated too, with [`root_path` configuration option](#absolute-paths). - If necessary, absolute paths can be validated too, with [`root_path` configuration option](#absolute-paths).
- Headings defined multiple times in one file, will get enumerated as `<heading><divider><count>`. - Headings defined multiple times in one file, will get enumerated as `<heading><divider><count>`.
The divier can be customized with [`fragment-count-divider`](#divider-for-fragment-index). The divider can be customized with [`fragment-count-divider`](#divider-for-fragment-index).
### Limitations ### Limitations
+699 -638
View File
File diff suppressed because it is too large Load Diff
+10 -10
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": "26.1.0",
"eslint-config-conventions": "21.2.2", "eslint-config-conventions": "21.4.0",
"markdownlint": "0.40.0", "markdownlint": "0.41.0",
"markdownlint-cli2": "0.21.0", "markdownlint-cli2": "0.23.0",
"oxfmt": "0.34.0", "oxfmt": "0.57.0",
"oxlint": "1.49.0", "oxlint": "1.72.0",
"oxlint-tsgolint": "0.14.1", "oxlint-tsgolint": "0.24.0",
"semantic-release": "25.0.3", "semantic-release": "25.0.5",
"typescript": "5.9.3" "typescript": "6.0.3"
}, },
"engines": { "engines": {
"node": ">=22.0.0" "node": ">=22.0.0"
+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
+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,