Python · 528 bytes Raw Blame History
1 """v9 → v10 migrator: additive `SectionType.IMAGE` for multi-modal bodies.
2
3 v10 introduces the `::image path="..." alt="..."::` fence grammar and
4 the new `SectionType.IMAGE` enum value. The addition is strictly
5 body-side — no frontmatter fields move. A v9 document without any
6 image fences parses as v10 unchanged; this is a pure identity
7 migrator, same shape as the v7→v8 and v8→v9 additive bumps.
8 """
9
10 from __future__ import annotations
11
12
13 def migrate(raw: dict[str, object]) -> dict[str, object]:
14 return dict(raw)