diff --git a/docs/guide/frontmatter.md b/docs/guide/frontmatter.md index 8c3b04d54ae..e0b15e88733 100644 --- a/docs/guide/frontmatter.md +++ b/docs/guide/frontmatter.md @@ -1,6 +1,8 @@ # Frontmatter -Any Markdown file that contains a YAML frontmatter block will be processed by [gray-matter](https://github.com/jonschlinkert/gray-matter). The frontmatter must be at the top of the Markdown file, and must take the form of valid YAML set between triple-dashed lines. Example: +## Usage + +VitePress supports YAML frontmatter in all Markdown files, parsing them with [gray-matter](https://github.com/jonschlinkert/gray-matter). The frontmatter must be at the top of the Markdown file (before any elements including `