Markdown
Preview

  • Name: mdshape
  • Category: Schema Validation
  • License: MIT

mdshape is a TypeScript library that lets you define schemas for Markdown documents. Think of it as Zod or Yup for Markdown — it parses and validates the structure of your .md files, extracting typed data you can trust.

SUMMARY: Validate Markdown before feeding it into your retrieval-augmented generation pipeline. Catch structural errors early and ensure consistent document formats.

SUMMARY: After converting PDFs to Markdown, use mdshape to verify the output matches your expected structure — headings, sections, metadata, and fields.

SUMMARY: Enforce consistent structure across your docs: required sections, valid metadata, and properly formatted content.

{
"message": "Run schema to inspect JSON output."
}
Validation issues: 0

Support

Need help or have a question? Reach out to us via email:

daniel@refiski.com