Documentation
¶
Overview ¶
Package extract extracts YAML frontmatter blocks from Markdown content.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractFrontmatter ¶
ExtractFrontmatter returns the YAML frontmatter block from content, including the delimiters and trailing newline.
Parameters:
- content: Raw Markdown content potentially starting with frontmatter
Returns:
- string: The frontmatter block including delimiters, or "" if not found
func StripFrontmatter ¶
StripFrontmatter removes the YAML frontmatter block from content, returning the remaining content. If no frontmatter is found, the original content is returned unchanged.
Parameters:
- content: Raw Markdown content potentially starting with frontmatter
Returns:
- string: Content without frontmatter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.