Environment
ESLint version: v10.8.1
@eslint/markdown version: v8.0.3
Node version: v24.14.0
npm version: 11.9.0
Operating System: macOS 26.5 (Darwin 25.5.0)
Which language are you using?
gfm
What did you do?
Configuration
import markdown from "@eslint/markdown";
export default [
{
files: ["**/*.md"],
plugins: { markdown },
language: "markdown/gfm",
rules: {
"markdown/no-bare-urls": "error",
},
},
];
I ran ESLint with --fix:
test.md contains:
Visit www.example.com for details.
What did you expect to happen?
ESLint should complete the autofix without throwing an error.
The fixed output should no longer be reported by markdown/no-bare-urls.
What actually happened?
ESLint aborted during autofix:
Error: Custom getRange() method must be implemented in the subclass.
Occurred while linting test.md:1
Rule: "markdown/no-bare-urls"
The rule's first fix replaces www.example.com with <www.example.com>.
Linting <www.example.com> directly reproduces the same error.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/node-jwpkwim7?file=test.md
Participation
AI acknowledgment
Additional comments
GFM already recognizes www.example.com as an extended autolink:
https://github.github.com/gfm/#autolinks-extension-
Possible valid fixes include <http://www.example.com> or [www.example.com](http://www.example.com). I think the exact output can be decided separately.
Disclosure: I'm a participant of open source contribution program OSSCA
Environment
ESLint version: v10.8.1
@eslint/markdown version: v8.0.3
Node version: v24.14.0
npm version: 11.9.0
Operating System: macOS 26.5 (Darwin 25.5.0)
Which language are you using?
gfm
What did you do?
Configuration
I ran ESLint with
--fix:test.mdcontains:Visit www.example.com for details.What did you expect to happen?
ESLint should complete the autofix without throwing an error.
The fixed output should no longer be reported by
markdown/no-bare-urls.What actually happened?
ESLint aborted during autofix:
The rule's first fix replaces
www.example.comwith<www.example.com>.Linting
<www.example.com>directly reproduces the same error.Link to Minimal Reproducible Example
https://stackblitz.com/edit/node-jwpkwim7?file=test.md
Participation
AI acknowledgment
Additional comments
GFM already recognizes
www.example.comas an extended autolink:https://github.github.com/gfm/#autolinks-extension-
Possible valid fixes include
<http://www.example.com>or[www.example.com](http://www.example.com). I think the exact output can be decided separately.Disclosure: I'm a participant of open source contribution program OSSCA