OfficeIMO

API Reference

Class

HtmlAsset

Namespace OfficeIMO.Markdown
Assembly OfficeIMO.Markdown
Modifiers sealed

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 requiredposition: 0
kind OfficeIMO.Markdown.HtmlAssetKind requiredposition: 1
href System.String requiredposition: 2
inline System.String requiredposition: 3

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)").