AbstractAbstractsplitProtectedgenerateGenerate 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
Abstract base class for all split strategies.
Provides common functionality for splitting markdown files including filename generation, frontmatter handling, and content sanitization. Concrete strategies implement specific splitting algorithms.
Example
Implementing a custom split strategy