markmv - v1.39.2
    Preparing search index...

    Class BaseJoinStrategyAbstract

    Abstract base class for all join strategies.

    Provides common functionality for joining markdown files including frontmatter merging, conflict detection, and link deduplication. Concrete strategies implement specific ordering algorithms.

    Implementing a custom join strategy

    class CustomJoinStrategy extends BaseJoinStrategy {
    async join(sections: JoinSection[]): Promise<JoinResult> {
    // Custom ordering logic
    const orderedSections = this.customSort(sections);
    return this.buildResult(orderedSections);
    }
    }

    Hierarchy (View Summary)

    Index
    • Returns title unless it is undefined or the empty string, in which case filePath is used -- an empty title is treated as "no title supplied" rather than a meaningful value to sort or display by.

      Parameters

      • title: string | undefined
      • filePath: string

      Returns string

    • Extract title from content (frontmatter or first header)

      Parameters

      • content: string
      • Optionalfrontmatter: string

      Returns string | undefined

    • Deduplicate links in combined content

      Parameters

      • content: string

      Returns { content: string; removedLinks: string[] }