pub fn validate(doc: &SurfDoc) -> Vec<Diagnostic>Expand description
Validate a parsed SurfDoc and return any diagnostics.
This function checks front matter completeness, required block attributes, and block content constraints. It never modifies the document.