ProtectedgenerateGenerate a safe filename from a title
ProtectedsanitizeSanitize a string to be safe for use as filename
ProtectedextractExtract frontmatter from content
ProtectedextractExtract title from header line
ProtectedgetCount the header level (number of # characters)
ProtectedisCheck if a line is a header at or above the specified level
Split strategy that divides content at specific line numbers.
Allows precise splitting at user-specified line numbers. This is useful when you know exactly where you want to split a document, perhaps based on analysis or external requirements.
Example
Line-based splitting