Open northword opened 1 month ago
Sorry, this is a VS Code limitation. I'd removed module support from the documentation long ago but added it back a release or two ago because it seemed to work after they made a change in this area. However, this has always worked at development time and I think I only checked that. This remains broken at run time and I have already made the commit to remove it from the documentation (again) for the next release: https://github.com/DavidAnson/vscode-markdownlint/commit/e96150c5274f17e9ad61af5e5a5ca80306d67e80
The original issue is #248 and includes a link to the relevant VS Code issue.
Thanks for your great work! I encountered a problem in use:
I have a
.markdownlint-cli2.mjs
in the project root directory, but when I open the md file, the plugin reports an error:I'm sure my config file is correct because when I change the suffix to
cjs
andexport default
tomodule.exports
, it works fine.It also works fine when running markdownlint-cli2 directly.
It seems this is caused by the plugin being cjs and not being able to load esm's? (I'm not sure)
Below are my config files and package.json:
I would appreciate it if you could help me see what the problem is!
Thank you very much again!