Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>markdown-yaml-lintNew to Visual Studio Code? Get it now.
markdown-yaml-lint

markdown-yaml-lint

Jayarama Krishna Gudipati

|
4,639 installs
| (0) | Free
Performs Yaml Lint and provides if any syntax issues in the yaml code embedded in a Markdown File.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

README

The "markdown-yaml-lint" is a yaml lint checker specifically for checking the yaml syntax in a markdown file.

This extension checks the syntax of the yaml code embedded in a markdown file in a yaml snippet.

Prerequisites

Install yamllint package in the machine before applying this extension in usage.

pip install yamllint

If this extension is used without installing yamllint package in the system, this may result in the below error,

Error: The 'yamllint' executable was not found. Please ensure it is installed in your machine, if not execute the command "pip install yamllint" in your terminal

Procedure

Open a markdown file having yaml code in a yaml code block and select 'md-yaml-lint' from vscode command palette, if any syntax issues in the yaml code block, the extension will open a console and displays the issues with Line Numbers.

example of yaml code:

tags:
  - update: button1
    publication:
      publicName: requestGreenLeft
  - update: button2
    publication:
      publicName: requestGreenRight

If any syntax issues in the yaml code blocks in a markdown file the extension will open terminal and display the issues along with line numbers, if the yaml code block is fine and doesn't have any issues then the extension displays as "the code block is valid".

example of lint check results on console:

YAML Code Block 1 Errors:
Line 6: [error] wrong indentation: expected 1 but found 0 (indentation)
Line 7: [error] wrong indentation: expected 3 but found 4 (indentation)
Line 7: [error] syntax error: mapping values are not allowed here (syntax)
Line 8: [error] trailing spaces (trailing-spaces)
Line 15: [error] trailing spaces (trailing-spaces)
YAML Code Block 2 is valid!
YAML Code Block 3 Errors:
Line 6: [error] trailing spaces (trailing-spaces)
Line 17: [error] trailing spaces (trailing-spaces)
Line 28: [error] trailing spaces (trailing-spaces)

Requirements

Make sure the extension is selected on a .md file else vscode issues a warning as shown below.

Please open a Markdown file before running YAML linting.

Working with Markdown

You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:

  • Split the editor (Cmd+\ on macOS or Ctrl+\ on Windows and Linux)
  • Toggle preview (Shift+Cmd+V on macOS or Shift+Ctrl+V on Windows and Linux)
  • Press Ctrl+Space (Windows, Linux, macOS) to see a list of Markdown snippets

For more information

  • Visual Studio Code's Markdown Support
  • Markdown Syntax Reference
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft