markmv - v1.26.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

    Constructors

    Properties

    Methods

    • Extract title from content (frontmatter or first header)

      Parameters

      • content: string
      • Optionalfrontmatter: string

      Returns undefined | string

    • Deduplicate links in combined content

      Parameters

      • content: string

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