lint_markdown_semantics

Function lint_markdown_semantics 

Source
pub fn lint_markdown_semantics(content: &str) -> Vec<MarkdownSemanticIssue>
Expand description

Lint markdown/text for semantic hazards that commonly break context tooling.

This is intentionally lightweight and deterministic:

  • rejects unescaped mention-like @ tokens (@foo, @path/to/file)
  • flags unterminated fenced code blocks
  • flags malformed markdown table rows with inconsistent column counts