mirror of
				https://github.com/theoludwig/markdownlint-rule-relative-links.git
				synced 2025-11-01 00:49:07 +01:00 
			
		
		
		
	feat: usage of ESM modules imports (instead of CommonJS)
Fixes #10 BREAKING CHANGE: This package is now pure ESM BREAKING CHANGE: minimum supported Node.js >= 22.0.0
This commit is contained in:
		@@ -1,14 +1,14 @@
 | 
			
		||||
const { test } = require("node:test")
 | 
			
		||||
const assert = require("node:assert/strict")
 | 
			
		||||
import { test } from "node:test"
 | 
			
		||||
import assert from "node:assert/strict"
 | 
			
		||||
 | 
			
		||||
const {
 | 
			
		||||
import {
 | 
			
		||||
  convertHeadingToHTMLFragment,
 | 
			
		||||
  getMarkdownHeadings,
 | 
			
		||||
  getMarkdownIdOrAnchorNameFragments,
 | 
			
		||||
  isValidIntegerString,
 | 
			
		||||
  getNumberOfLines,
 | 
			
		||||
  getLineNumberStringFromFragment,
 | 
			
		||||
} = require("../src/utils.js")
 | 
			
		||||
} from "../src/utils.js"
 | 
			
		||||
 | 
			
		||||
test("utils", async (t) => {
 | 
			
		||||
  await t.test("convertHeadingToHTMLFragment", async () => {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user