Documentation
¶
Overview ¶
Package preview extracts short content previews from context files for status display.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContentPreview ¶
ContentPreview returns the first n non-empty, meaningful lines from content.
Skips empty lines, YAML frontmatter delimiters, and HTML comments. Truncates lines longer than 60 characters.
Parameters:
- content: The file content to extract preview from
- n: Maximum number of lines to return
Returns:
- []string: Up to n meaningful lines from the content
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.