I use vim 8 and ALE plugin. On a markdown page, I see the following from ALEInfo

 Current Filetype: markdown
Available Linters: ['alex', 'languagetool', 'markdownlint', 'mdl', 'proselint', 'redpen', 'remark_lint', 'textlint', 'vale', 'writegood']
   Linter Aliases:
'remark_lint' -> ['remark-lint']
'writegood' -> ['write-good']
  Enabled Linters: ['alex', 'languagetool', 'markdownlint', 'mdl', 'proselint', 'redpen', 'remark_lint', 'textlint', 'vale', 'writegood']
 Suggested Fixers:
  'prettier' - Apply prettier to a file.
  'remove_trailing_lines' - Remove all blank lines at the end of a file.
  'textlint' - Fix text files with textlint --fix
  'trim_whitespace' - Remove all trailing whitespace characters at the end of every line.

My markdown file has certain lines that have trailing whitespace - they're legitimate as a way to prevent markdown rendering from collapsing the newlines.

How can I disable the warnings about trailing whitespace on these lines?

  • You'd want to find out which linter gives the warning and configure it appropriately.
    – D. Ben Knoble
    Apr 2, 2020 at 21:56
  • How can I find the specific linter for that warning?
    – Tri Nguyen
    Apr 2, 2020 at 22:02
  • one way would be to check the linters docs; another would be to run each one and see what the results are.
    – D. Ben Knoble
    Jul 26, 2020 at 13:41

1 Answer 1


Go to your coc-settings.json file and implement these changes. It fixed the whitespace related issues for me.

"markdownlint.config": {
    "default": true,
    "whitespace": false


  1. Markdown Lint Rules from GitHub Repo
  2. Marus's Blog Talking about Linting Markdown Syntax

Screenshot: Notice how there are no warnings from my linter and indentation is maintained.

Working on my machine.

  • 3
    Welcome to Vi and Vim! I think OP is using ALE, not coc.
    – D. Ben Knoble
    Jul 26, 2020 at 13:42
  • In available linters markdownlint was mentioned in OP's post and personally I was getting a lot of annoying warnings from markdownlint as well, that was the only reason I wrote for markdownlint. Thanks for letting me know about ALE being used. Jul 26, 2020 at 20:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.