Create(String, Func<Uri, String?>, Boolean, String?) Method

Definition

Assembly Markdig.dll

Create a IHostProvider with delegate handler.

public static IHostProvider Create(string hostPrefix, Func<Uri, string?> handler, bool allowFullScreen = true, string? iframeClass = null)

Parameters

hostPrefix
String

Prefix of host that can be handled.

handler
Func<Uri, String?>

Handler that generate iframe url, if uri cannot be handled, it can return null.

allowFullScreen
Boolean

Should the generated iframe has allowfullscreen attribute.

iframeClass
String

"class" attribute of generated iframe.

Returns

IHostProvider
A IHostProvider with delegate handler.