markmv - v1.26.2
    Preparing search index...

    Class SizeBasedSplitStrategy

    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.

    Size-based splitting

    const strategy = new SizeBasedSplitStrategy({
    maxSize: 50, // 50KB per file
    outputDir: './chunks/',
    filenamePattern: '{original}-part-{index}'
    });

    const result = await strategy.split(content, 'large-document.md');
    console.log(`Split into ${result.sections.length} files under 50KB each`);

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods