API Reference
Class
HtmlAsset
Represents a CSS/JS asset with a stable id for deduplication.
Inheritance
- Object
- HtmlAsset
Constructors
public HtmlAsset(String id, HtmlAssetKind kind, String href, String inline) #Creates a new asset descriptor.
Parameters
- id System.String
- kind OfficeIMO.Markdown.HtmlAssetKind
- href System.String
- inline System.String
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public String Id { get; } #Stable identifier used for deduplication, e.g. "prism-core" or "prism-lang:csharp".
public HtmlAssetKind Kind { get; } #Asset type (CSS or JS).
public String Href { get; } #URL to the asset when linked; null when inlined.
public String Inline { get; } #Inline content when not linked; null when referenced via Href.
public String Media { get; set; } #Optional media attribute for CSS links (e.g., "(prefers-color-scheme: dark)").