Documentation
¶
Overview ¶
Package lint provides markdown linting functionality for markata-go. It detects common issues in markdown files that can cause build failures.
Supported Checks ¶
The linter detects the following issues:
- Duplicate YAML keys in frontmatter
- Invalid date formats (non-ISO 8601)
- Malformed image links (missing alt text)
- Protocol-less URLs (//example.com instead of https://example.com)
All issues can be auto-fixed using the Fix function.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Issue ¶
type Issue struct {
File string // File path
Line int // Line number (1-indexed)
Column int // Column number (1-indexed, 0 if not applicable)
Type string // Issue type (e.g., "duplicate-key", "invalid-date")
Severity Severity // Severity level
Message string // Human-readable message
FixApplied bool // Whether fix was applied
}
Issue represents a linting issue found in a file.
type Result ¶
type Result struct {
File string // File path
Issues []Issue // Issues found
Content string // Original content
Fixed string // Fixed content (same as Content if no fixes)
}
Result contains the linting results for a file.
Click to show internal directories.
Click to hide internal directories.