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
@@ -4,7 +4,7 @@ import { getHtmlAttributeRe } from "./markdownlint-rule-helpers/helpers.js"
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
@@ -125,7 +125,7 @@ export const getMarkdownIdOrAnchorNameFragments = (content) => {
* @example isValidIntegerString("1.0") // false
*/
export const isValidIntegerString = (value) => {
const regex = /^\d+$/
const regex = /^\d+$/u
return regex.test(value)
}