API Reference
MarkdownCodeFenceInfo
Parsed fenced-code info string preserving the original raw value while exposing the primary language token.
Inheritance
- Object
- MarkdownCodeFenceInfo
Methods
public String GetAttribute(params String[] aliases) #StringReads the first parsed attribute value that matches any of the provided aliases.
Parameters
- aliases System.String[]
public Boolean HasClass(String className) #BooleanDetermines whether the fence metadata contains the given CSS class.
Parameters
- className System.String
public static MarkdownCodeFenceInfo Parse(String infoString) #MarkdownCodeFenceInfoParses a fenced-code info string into its primary language token and additional metadata.
Parameters
- infoString System.String
public Boolean TryGetAttribute(out String value, params String[] aliases) #BooleanReads a parsed attribute value by key.
Parameters
- name System.String
- value System.String@
TryGetAttribute(System.String@ value, System.String[] aliases) #Reads the first parsed attribute value that matches any of the provided aliases.
Parameters
- value System.String@
- aliases System.String[]
public Boolean TryGetBooleanAttribute(out Boolean value, params String[] aliases) #BooleanAttempts to read a parsed boolean attribute value.
Parameters
- name System.String
- value System.Boolean@
TryGetBooleanAttribute(System.Boolean@ value, System.String[] aliases) #Attempts to read a parsed boolean attribute value from any of the provided aliases.
Parameters
- value System.Boolean@
- aliases System.String[]
public Boolean TryGetInt32Attribute(out Int32 value, params String[] aliases) #BooleanAttempts to read a parsed 32-bit integer attribute value.
Parameters
- name System.String
- value System.Int32@
TryGetInt32Attribute(System.Int32@ value, System.String[] aliases) #Attempts to read a parsed 32-bit integer attribute value from any of the provided aliases.
Parameters
- value System.Int32@
- aliases System.String[]
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public String InfoString { get; } #Full normalized fence info string exactly as it should round-trip after the opening fence marker.
public String Language { get; } #Primary fence language token parsed from the info string.
public String AdditionalInfo { get; } #Remaining fence metadata after the primary language token, preserved as raw trimmed text.
public String ElementId { get; } #Optional element id parsed from #id shorthand or id=... metadata.
public IReadOnlyList<String> Classes { get; } #Optional CSS classes parsed from .class shorthand or class=... metadata.
public IReadOnlyDictionary<String, String> Attributes { get; } #Parsed attribute-style metadata from the additional info string. Recognizes key=value, key="value with spaces", and standalone flags.
public String Title { get; } #Common convenience title resolved from title or caption attributes when present.