Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownFenceOptionSet

OfficeIMO.MarkdownRenderer

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

Parsed fenced metadata values for a specific option schema.

Inheritance

  • object
  • MarkdownFenceOptionSet

Usage

Explore 2 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.

Returned or exposed by 1

Accepted by parameters 1

Methods

public bool HasOption(string name) #

Returns true when the parsed set contains the specified option.

Parameters

name string required

Returns

bool
public bool TryGetBoolean(string name, out bool value) #

Attempts to read a boolean-valued option.

Parameters

name string required
value bool required

Returns

bool
public bool TryGetInt32(string name, out int value) #

Attempts to read a 32-bit integer-valued option.

Parameters

name string required
value int required

Returns

bool
public bool TryGetString(string name, out string? value) #

Attempts to read a string-valued option.

Parameters

name string required
value string? required

Returns

bool

Properties

public MarkdownFenceOptionSchema Schema { get; } #

Schema used for parsing.

public MarkdownCodeFenceInfo? FenceInfo { get; } #

Original fenced-code info descriptor.

public IReadOnlyDictionary<string, string?> Values { get; } #

Canonical parsed option values keyed by option name.

public IReadOnlyDictionary<string, string> Errors { get; } #

Validation errors keyed by canonical option name.

public IReadOnlyList<string> UnknownOptions { get; } #

Unknown non-core attributes encountered during schema parsing.

public bool IsValid { get; } #

Returns true when no schema validation errors were found.