Skip to content

v3.11.0

Choose a tag to compare

@github-actions github-actions released this 02 Apr 21:05
· 41 commits to v3 since this release
94247d4

This release adds support for linting front matter fields in Markdown, AsciiDoc, reStructuredText, MDX, and Org files.

There are 3 supported front matter types -- YAML, TOML, and JSON:

formats

Each field is dynamically assigned its own scope, allowing you to write rules that target specific ones:

---
title: "My document"
description: "A short summary of the document's purpose."
author: "John Doe"
---

Using the example above, the generated scopes would be text.frontmatter.title, text.frontmatter.description, and text.frontmatter.author.

A rule can then use these in its scope: field:

extends: capitalization
message: "'%s' should be in title case"
level: warning
scope: text.frontmatter.title

Changelog

  • 94247d4 chore: add mdx2vast to Docker
  • ecbcb3b feat: support for front matter