mirror of
https://github.com/theoludwig/markdownlint-rule-relative-links.git
synced 2025-05-27 11:37:24 +02:00
feat: add support for markdownlint v0.38.0
This commit is contained in:
5
src/index.d.ts
vendored
5
src/index.d.ts
vendored
@ -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 }
|
||||
|
@ -12,6 +12,8 @@ import {
|
||||
lineFragmentRe,
|
||||
} from "./utils.js"
|
||||
|
||||
export { markdownIt } from "./utils.js"
|
||||
|
||||
/** @typedef {import('markdownlint').Rule} MarkdownLintRule */
|
||||
|
||||
/**
|
||||
|
@ -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+)$/
|
||||
|
||||
|
Reference in New Issue
Block a user