Expand description
Core types and traits for mdtype.
This crate defines the data model, trait boundaries, parser, and default validator
used by the CLI and all sibling crates. It has zero dependencies on sibling crates,
so downstream users may depend on mdtype-core alone and supply their own
schema source, rules, and reporter.
Re-exports§
pub use diagnostic::Diagnostic;pub use diagnostic::Fixit;pub use diagnostic::Severity;pub use diagnostic::Summary;pub use error::Error;pub use parser::parse_file;pub use parser::ParsedDocument;pub use rule::BodyRule;pub use rule::BodyRuleFactory;pub use schema::Schema;pub use source::SchemaEntry;pub use source::SchemaSource;pub use validator::CoreValidator;pub use validator::Reporter;pub use validator::Validator;pub use validator::FRONTMATTER_RULE_ID;pub use comrak;
Modules§
- diagnostic
- Diagnostics produced by the validator and rules.
- error
- Shared error type for the core crate.
- nodes
- The CommonMark AST.
- parser
- Markdown + frontmatter parser. One path in,
ParsedDocumentout. - rule
- The
BodyRuletrait and factory interface. - schema
- In-memory schema representation. Two halves: frontmatter (JSON Schema) + body (rules).
- source
- The
SchemaSourcetrait — any backing store that can produce(glob, Schema)pairs. - validator
- Validator + Reporter traits and the default
CoreValidator.
Structs§
- Arena
- An arena of objects of type
T.