Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diagnostic ¶
type Diagnostic struct {
File string `json:"file"`
Line int `json:"line"`
Tag string `json:"tag"`
Message string `json:"message"`
Level string `json:"level"` // "warning" or "error"
}
Diagnostic represents a syntax issue found in a markdown file.
func Check ¶
func Check(filename string, content []byte, lineOffset int) []Diagnostic
Check scans markdown content for unclosed or mismatched fenced block tags. Lines inside fenced code blocks (``` or ~~~) are skipped. lineOffset is added to all reported line numbers (use page.FrontmatterLines when checking RawContent that has frontmatter stripped).
Click to show internal directories.
Click to hide internal directories.