Class
VisualMarkupFenceOptions
ChartForgeX.Markup
Provides shared parsing helpers for Markdown fence attributes and option values.
Inheritance
- object
- VisualMarkupFenceOptions
Methods
public static string NormalizeKey(string value) #Normalizes a markup key by keeping only letters and digits and lowercasing them.
Parameters
- value string
- The source key.
Returns
string The normalized key.public static bool ParseBoolean(string value, string optionName) #Parses a boolean option value.
Parameters
- value string
- The source value.
- optionName string
- The option name used in diagnostics.
Returns
bool The parsed boolean value.public static double ParseDouble(string value, string optionName) #Parses a double-precision option value.
Parameters
- value string
- The source value.
- optionName string
- The option name used in diagnostics.
Returns
double The parsed numeric value.public static TEnum ParseEnum<TEnum>(string value, string optionName) #Parses an enum option value using ChartForgeX markup's normalized key matching.
Type Parameters
- TEnum
- The enum type.
Parameters
- value string
- The source value.
- optionName string
- The option name used in diagnostics.
Returns
TEnum The parsed enum value.public static int ParseInt32(string value, string optionName) #Parses an integer option value.
Parameters
- value string
- The source value.
- optionName string
- The option name used in diagnostics.
Returns
int The parsed integer value.public static bool TryGetAttribute(VisualMarkupBlock block, string key, out string value) #Finds a fence attribute using ChartForgeX markup's case-insensitive normalized key matching.
Parameters
- block ChartForgeX.Markup.VisualMarkupBlock
- The visual markup block carrying fence attributes.
- key string
- The attribute key to find.
- value string
- The attribute value when present.
Returns
bool True when the attribute is present.