Is there a standard / validator of the front YAML case?

I would like to use YAML front matter as a metadata holder for a general-purpose data manager, for example:

---
layout: "user"
title: "Mario Brega"
slug: "mario-brega"
skills:
  - fire
  - water
  - leaf
---

# Here I will be using Markdown

yes I will, _I swear_

It is used by many static generators like:


Question: is there a standard for this? Some tools that I can easily check with, for example, agree that all string values ​​should be quoted, that booleans should not, etc.

Matching a YAML element before a JSON schema will be a big plus.

+4
source share
1 answer

Jekyll Front Matter. , , . Yaml Front Matter, , .

YAML Lint linter YAML , . YAML, --- ; YAML YAML. Markdown linter.

YAML ( ). , , , .

- Markdown - , CommonMark.

, , . , .

+4

Source: https://habr.com/ru/post/1570450/


All Articles