Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More markdownlint rules triggered from CLI than from efm #280

Open
Markus00000 opened this issue Jun 29, 2024 · 0 comments
Open

More markdownlint rules triggered from CLI than from efm #280

Markus00000 opened this issue Jun 29, 2024 · 0 comments

Comments

@Markus00000
Copy link

Invoking markdownlint from the CLI triggers more rules than invoking it via efm-langserver in Neovim.

Example Markdown:

# This line triggers MD043

This line should trigger MD013. This line should trigger MD013. This line should trigger MD013.

Both rules triggered on CLI:

$ markdownlint -c "$HOME/.markdownlint.yaml" TEST.md
TEST.md:1 MD043/required-headings Required heading structure [Expected: [None]; Actual: # This line triggers MD043]
TEST.md:3:81 MD013/line-length Line length [Expected: 80; Actual: 95]

efm-langserver in Neovim only shows MD043. I confirmed that both are using $HOME/.markdownlint.yaml. That is, if I disable all rules, efm-langserver stops showing MD043.

markdownlint: &markdownlint
  lint-command: 'markdownlint -s -c "$HOME/.markdownlint.yaml"'
  lint-stdin: true
  lint-formats:
    - '%f:%l %m'
    - '%f:%l:%c %m'
    - '%f: %l: %m'

I have never had this issue with any other command.

NVIM v0.10.0
efm-langserver 0.0.53
markdownlint 0.41.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant