MarkdownFenceOptionSet
OfficeIMO.MarkdownRenderer
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
Returns
boolpublic bool TryGetBoolean(string name, out bool value) #Attempts to read a boolean-valued option.
Parameters
- name string
- value bool
Returns
boolpublic bool TryGetInt32(string name, out int value) #Attempts to read a 32-bit integer-valued option.
Parameters
- name string
- value int
Returns
boolpublic bool TryGetString(string name, out string? value) #Attempts to read a string-valued option.
Parameters
- name string
- value string?
Returns
boolInherited Methods
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.