Class
MarkdownFenceOptionSchema
OfficeIMO.MarkdownRenderer
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.
Returned or exposed by 3
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
- name string
- languages System.Collections.Generic.IEnumerable<string>
- definitions System.Collections.Generic.IEnumerable<OfficeIMO.MarkdownRenderer.MarkdownFenceOptionDefinition>
Methods
public bool HandlesLanguage(string language) #Returns true when the schema handles the supplied language.
Parameters
- language string
Returns
boolpublic MarkdownFenceOptionSet Parse(MarkdownCodeFenceInfo? fenceInfo) #Parses the supplied fence metadata according to this schema.
Parameters
- fenceInfo OfficeIMO.Markdown.MarkdownCodeFenceInfo?
Returns
MarkdownFenceOptionSet