PhoenixKit.Modules.Publishing.Metadata (phoenix_kit v1.7.63)

Copy Markdown View Source

Content metadata helpers for the Publishing module.

Provides title extraction from markdown/component content.

Summary

Functions

Extracts title from markdown content. Looks for the first H1 heading (# Title) within the first few lines. Falls back to the first line if no H1 found.

Functions

extract_title_from_content(content)

@spec extract_title_from_content(String.t()) :: String.t()

Extracts title from markdown content. Looks for the first H1 heading (# Title) within the first few lines. Falls back to the first line if no H1 found.