feat: add support for markdownlint v0.38.0

This commit is contained in:
2025-05-11 16:45:14 +02:00
parent 70bdb7013e
commit 876384344c
8 changed files with 1851 additions and 795 deletions

5
src/index.d.ts vendored
View File

@ -1,5 +1,8 @@
import type MarkdownIt from "markdown-it"
import type { Rule } from "markdownlint"
declare const relativeLinksRule: Rule
export default relativeLinksRule
declare const markdownIt: MarkdownIt
export { markdownIt }

View File

@ -12,6 +12,8 @@ import {
lineFragmentRe,
} from "./utils.js"
export { markdownIt } from "./utils.js"
/** @typedef {import('markdownlint').Rule} MarkdownLintRule */
/**

View File

@ -2,7 +2,7 @@ import MarkdownIt from "markdown-it"
import { getHtmlAttributeRe } from "./markdownlint-rule-helpers/helpers.js"
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+)$/