Docs · API reference · Verso.Serializers

VersoSerializer Class#

Serializer for the native .verso file format using System.Text.Json.

public sealed class VersoSerializer : Verso.Abstractions.INotebookSerializer, Verso.Abstractions.IExtension

Inheritance System.Object → VersoSerializer

Implements INotebookSerializer, IExtension

Constructors#

VersoSerializer() Constructor#

Creates a serializer using the built-in migration pipeline.

public VersoSerializer();

VersoSerializer(IReadOnlyList<ICellType>) Constructor#

Creates a serializer with an explicit cell-type registry so that cell types whose outputs are transient (PersistsOutputs is false) can be stripped on save without hardcoding any cell-type identifier.

public VersoSerializer(System.Collections.Generic.IReadOnlyList<Verso.Abstractions.ICellType>? cellTypes);

Parameters#

cellTypes System.Collections.Generic.IReadOnlyList<ICellType>

VersoSerializer(NotebookMigrationPipeline) Constructor#

Creates a serializer with an explicit migration pipeline (used by tests).

public VersoSerializer(Verso.Serializers.Migrations.NotebookMigrationPipeline migrationPipeline);

Parameters#

migrationPipeline NotebookMigrationPipeline