markmv - v1.39.2
    Preparing search index...

    Class ManualSplitStrategy

    Split strategy that divides content at manually specified markers.

    Looks for specific comment markers or text patterns in the content to determine split points. This provides precise control over where splits occur, regardless of content structure.

    Manual marker splitting

    const strategy = new ManualSplitStrategy({
    splitMarkers: ['<!-- split -->', '---BREAK---'],
    outputDir: './parts/',
    filenamePattern: '{title}'
    });

    // Content with markers like: <!-- split -->
    const result = await strategy.split(content, 'document.md');

    Hierarchy (View Summary)

    Index
    • Returns value unless it is nullish or the empty string, in which case fallback is used -- an empty string is treated as "no value supplied" rather than a meaningful value to preserve.

      Parameters

      • value: string | null | undefined
      • fallback: string

      Returns string

    • Returns value unless it is nullish or zero, in which case fallback is used -- zero is not a meaningful value for these options (header levels start at 1, size limits must be positive).

      Parameters

      • value: number | undefined
      • fallback: number

      Returns number