markmv - v1.26.2
    Preparing search index...

    Class AppendMergeStrategy

    Merge strategy that appends source content to the end of target content.

    Simply adds the source file content to the end of the target file, with optional separator and frontmatter merging. This is the simplest merge strategy and works well for accumulating content.

    Append merge with transclusions

    const strategy = new AppendMergeStrategy({
    createTransclusions: true,
    separator: '\n\n---\n\n'
    });

    const result = await strategy.merge(targetContent, sourceContent, 'target.md', 'source.md');
    console.log(`Appended content, ${result.transclusions.length} transclusions created`);

    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 }[]