Before you begin, you need to install Go 1.21 or later.
Install mdschema using Go:
go install github.com/jackchuka/mdschema/cmd/mdschema@latestCreate a .mdschema.yml file:
structure:
- heading: "# My Project"
children:
- heading: "## Features"
- heading: "## Installation"Run mdschema to validate your Markdown file:
mdschema validate path/to/yourfile.md --schema path/to/.mdschema.ymlIf you encounter issues, check that Go is in your PATH.
Explore more advanced schema features in the documentation.