FenceRendererFactory Delegate

Definition

Assembly MarkView.Avalonia.dll

Creates the control shown in place of a fenced code block whose language was registered with a FenceRendererExtension.

public delegate Control? FenceRendererFactory(string code, string info);

Parameters

code
String

The block's content, one line per source line joined with \n, without the fences.

info
String

The whole info string after the opening fence: the language, then any arguments after it (chart for ```chart ).

Returns

Avalonia.Controls.Control
A new control for this block, or null to render the block as code instead.