markmv - v1.26.2
    Preparing search index...

    Class InteractiveMergeStrategy

    Merge strategy that provides intelligent conflict detection and resolution.

    Analyzes both files to detect potential conflicts such as duplicate headers, overlapping content, or structural issues. Provides automatic resolution where possible and clear reporting of conflicts that need manual attention.

    Interactive merge with conflict resolution

    const strategy = new InteractiveMergeStrategy({
    conflictResolution: 'auto',
    createTransclusions: true,
    preserveStructure: true
    });

    const result = await strategy.merge(targetContent, sourceContent, 'target.md', 'source.md');
    console.log(`Merge completed with ${result.conflicts.length} conflicts detected`);

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    • Find potential header conflicts between target and source

      Parameters

      • targetContent: string
      • sourceContent: string

      Returns { header: string; targetLine: number; sourceLine: number }[]