mirror of
				https://github.com/theoludwig/markdownlint-rule-relative-links.git
				synced 2025-09-09 19:39:29 +02:00 
			
		
		
		
	docs: markdownItFactory is not necessary
Ref: https://github.com/theoludwig/markdownlint-rule-relative-links/issues/13
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| import relativeLinksRule, { markdownIt } from "./src/index.js" | ||||
| import relativeLinksRule from "./src/index.js" | ||||
|  | ||||
| const config = { | ||||
|   config: { | ||||
| @@ -10,9 +10,6 @@ const config = { | ||||
|   globs: ["**/*.md"], | ||||
|   ignores: ["**/node_modules", "**/test/fixtures/**"], | ||||
|   customRules: [relativeLinksRule], | ||||
|   markdownItFactory: () => { | ||||
|     return markdownIt | ||||
|   }, | ||||
| } | ||||
|  | ||||
| export default config | ||||
|   | ||||
| @@ -83,7 +83,7 @@ We recommend configuring [markdownlint-cli2](https://github.com/DavidAnson/markd | ||||
| `.markdownlint-cli2.mjs` | ||||
|  | ||||
| ```js | ||||
| import relativeLinksRule, { markdownIt } from "markdownlint-rule-relative-links" | ||||
| import relativeLinksRule from "markdownlint-rule-relative-links" | ||||
|  | ||||
| const config = { | ||||
|   config: { | ||||
| @@ -93,9 +93,6 @@ const config = { | ||||
|   globs: ["**/*.md"], | ||||
|   ignores: ["**/node_modules"], | ||||
|   customRules: [relativeLinksRule], | ||||
|   markdownItFactory: () => { | ||||
|     return markdownIt | ||||
|   }, | ||||
| } | ||||
|  | ||||
| export default config | ||||
|   | ||||
		Reference in New Issue
	
	Block a user