Markdown / Nested leaf merge

Markdown Nested Section List Leaf Merge

This page has a stable URL for review, documentation, and implementation comparison. The fixture tabs show merge inputs and output; the contract tabs show JSON and compact ruleset renderings with stable IDs and deterministic ownership.

Advanced .md advanced leaf mergenested leavesdestination leaf winsmarkdownsection_list_itemsnormalized_heading_pathsource_augmented_portable_writetracker_layout_merge

Fixture sources

JSON fixture: structuredmerge-fixtures/markdown/slice-720-advanced-leaf-merge/nested-section-list-leaf-merge.json

Compact ruleset: structuredmerge-fixtures/rulesets/markdown/slice-720-advanced-leaf-merge/nested-section-list-leaf-merge.smrules

Fixture view
# Care Plan

## Goals

- Mobility: walk daily
- Nutrition: low sodium
- Sleep: eight hours

## Notes

Template note.
Contract view
{
  "contract_id": "markdown-nested-section-list-leaf-merge",
  "format": "markdown",
  "owners": "section_list_items",
  "match": "normalized_heading_path",
  "read": "source_augmented_portable_write",
  "attach": "tracker_layout_merge",
  "comment_style": "html_comment",
  "render": "markdown_blocks",
  "surfaces": [
    {
      "name": "list_item",
      "selector": "key_prefix"
    }
  ],
  "capabilities": {
    "nested_leaf_merge": true,
    "destination_leaf_wins": true,
    "template_missing_leaf_adds": true
  }
}