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 based on file size limits.
Creates new files when the current section exceeds a specified size limit. This ensures that no generated file becomes too large, which is useful for performance or platform constraints.
Example
Size-based splitting