Method Convert
- Namespace
- GuildWars2.Markup
- Assembly
- GW2SDK.dll
Convert(RootNode)
Converts a RootNode to its HTML representation using the DefaultColorMap.
public string Convert(RootNode root)
Parameters
root
RootNodeThe root node of the markup syntax tree to convert.
Returns
- string
A string containing the HTML representation of the markup syntax tree.
Convert(RootNode, IReadOnlyDictionary<string, string>?)
Converts a RootNode and its children to an HTML string representation using a custom color map.
public string Convert(RootNode root, IReadOnlyDictionary<string, string>? colorMap)
Parameters
root
RootNodeThe root node of the markup syntax tree to convert.
colorMap
IReadOnlyDictionary<string, string>A dictionary mapping color names to their corresponding HTML color codes.
Returns
- string
A string containing the HTML representation of the markup syntax tree.