Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownFenceOptionSchema

OfficeIMO.MarkdownRenderer

Namespace
OfficeIMO.MarkdownRenderer
Assembly
OfficeIMO.MarkdownRenderer
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed

Declares a host/plugin fence metadata schema for one or more fenced languages.

Inheritance

  • object
  • MarkdownFenceOptionSchema

Usage

Explore 7 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 4

Constructors

public MarkdownFenceOptionSchema(string id, string name, IEnumerable<string> languages, IEnumerable<MarkdownFenceOptionDefinition> definitions) #

Creates a new fence option schema.

Parameters

id string required
name string required
languages System.Collections.Generic.IEnumerable<string> required
definitions System.Collections.Generic.IEnumerable<OfficeIMO.MarkdownRenderer.MarkdownFenceOptionDefinition> required

Methods

public bool HandlesLanguage(string language) #

Returns true when the schema handles the supplied language.

Parameters

language string required

Returns

bool
public MarkdownFenceOptionSet Parse(MarkdownCodeFenceInfo? fenceInfo) #

Parses the supplied fence metadata according to this schema.

Parameters

fenceInfo OfficeIMO.Markdown.MarkdownCodeFenceInfo? required

Properties

public string Id { get; } #

Stable schema identifier used for registration and diagnostics.

public string Name { get; } #

Friendly schema name.

public IReadOnlyList<string> Languages { get; } #

Fence languages handled by this schema.

public IReadOnlyList<MarkdownFenceOptionDefinition> Definitions { get; } #

All supported option definitions.