Docs · API reference · Verso.Abstractions

INotebookMigration Interface#

A single, host-independent transform that upgrades a NotebookModel from one format version to the next. Migrations operate purely on the parsed model and must not depend on the live extension host. Host-dependent resolution (for example, resolving a layout reference against the loaded extension set) belongs in the notebook wire-up stage, not here.

public interface INotebookMigration

Properties#

From Property#

The format version this migration upgrades from.

System.Version From { get; }

Property Value#

System.Version

To Property#

The format version this migration produces.

System.Version To { get; }

Property Value#

System.Version

Methods#

Apply(NotebookModel, NotebookMigrationLog) Method#

Applies the transform to notebook in place, recording notable changes to log.

void Apply(Verso.Abstractions.NotebookModel notebook, Verso.Abstractions.NotebookMigrationLog log);

Parameters#

notebook NotebookModel

log NotebookMigrationLog