pub struct MDBOOK003;Expand description
MDBOOK003: Validates SUMMARY.md structure and formatting
This rule checks:
- File must be named SUMMARY.md (case-sensitive)
- Consistent list delimiters (don’t mix - and *)
- Proper nesting hierarchy (no skipped indentation levels)
- Part titles must be h1 headers only
- Prefix chapters cannot be nested
- No prefix chapters after numbered chapters begin
- Valid link syntax for chapters
- Draft chapters use empty parentheses
- Separators contain only dashes (minimum 3)
Trait Implementations§
Source§impl Rule for MDBOOK003
impl Rule for MDBOOK003
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Description of what the rule checks
Source§fn metadata(&self) -> RuleMetadata
fn metadata(&self) -> RuleMetadata
Metadata about this rule’s status and properties
Source§fn check_with_ast<'a>(
&self,
document: &Document,
_ast: Option<&'a AstNode<'a>>,
) -> Result<Vec<Violation>>
fn check_with_ast<'a>( &self, document: &Document, _ast: Option<&'a AstNode<'a>>, ) -> Result<Vec<Violation>>
Check a document for violations of this rule with optional pre-parsed AST
Source§fn check(&self, document: &Document) -> Result<Vec<Violation>>
fn check(&self, document: &Document) -> Result<Vec<Violation>>
Check a document for violations of this rule (backward compatibility)
Auto Trait Implementations§
impl Freeze for MDBOOK003
impl RefUnwindSafe for MDBOOK003
impl Send for MDBOOK003
impl Sync for MDBOOK003
impl Unpin for MDBOOK003
impl UnwindSafe for MDBOOK003
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more