{"repo":"jackchuka/mdschema","free":true,"listed":false,"github":"https://github.com/jackchuka/mdschema","clone":"git clone https://github.com/jackchuka/mdschema.git","description":"📝 A declarative schema-based Markdown validator that helps maintain consistent documentation structure across projects.","language":"Go","stars":77,"topics":["cli-tool","devtools","markdown","markdown-lint","schema"],"license":"MIT","category":"dev-tools","readme_excerpt":"mdschema A declarative schema-based Markdown documentation validator that helps maintain consistent documentation structure across projects. This README file itself is an example of how to use mdschema to validate and generate documentation. Features - Schema-driven validation - Define your documentation structure in simple YAML - Hierarchical structure - Support for nested sections and complex document layouts - Template generation - Generate markdown templates from your schemas - Comprehensive rules - Validate headings, code blocks, images, tables, lists, links, and more - Frontmatter validation - Validate YAML frontmatter with type and format checking - Link validation - Check internal anchors, relative files, and external URLs - Context-aware - Uses AST parsing for accurate validation without string matching - Fast and lightweight - Single binary with no dependencies - Cross-platform - Works on Linux, macOS, and Windows - Editor support - JSON Schema for auto-completion and validation in VS Code, Neovim, and more Installation Homebrew npm Or run directly with npx: Go Install From Source Quick Start 1. Initialize a schema in your project: 2. Validate your markdown files : 3. Generate a template from your schema: Schema Format Create a .mdschema.yml file to define your documentation structure: Schema Elements Structure Elements - heading - Heading pattern: - String: \"# Title\" (literal match) - Regex: {pattern: \"# . \"} (regex match after headings are extracted) - Expression:","default_branch":null,"files":null,"tree":[],"storefront":"/r/jackchuka","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jackchuka/mdschema/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}