Splits a markdown file into multiple smaller files using the specified strategy.
This method analyzes the source file content and divides it into logical sections based on the chosen strategy. It handles link redistribution, maintains proper cross-references, and ensures content integrity across the split files.
Path to the markdown file to split
Configuration options for the split operation
Promise resolving to operation result with details of created files
Splits large markdown files into smaller, manageable sections using various strategies.
The ContentSplitter provides intelligent content division with support for header-based, size-based, manual marker-based, and line-based splitting strategies. It handles link redistribution, maintains content integrity, and ensures proper cross-references between the resulting files.
Example
Header-based splitting
Example
Size-based splitting