Record
public record PageContent : System.IEquatable<Moka.Docs.Core.Content.PageContent>
Namespace: Moka.Docs.Core.Content
The parsed body content of a page.
Inheritance
Implements: System.IEquatable<Moka.Docs.Core.Content.PageContent>
Properties
| Name | Description |
|---|---|
Empty static |
Creates empty content. |
Html |
The rendered HTML body. |
PlainText |
Plain text content (for search indexing). |
Empty
PageContent PageContent.Empty { get; }
Creates empty content.
Html
string PageContent.Html { get; init; }
The rendered HTML body.
PlainText
string PageContent.PlainText { get; init; }
Plain text content (for search indexing).
Type Relationships
classDiagram
style PageContent fill:#f9f,stroke:#333,stroke-width:2px
PageContent ..|> PageContent~ : implements
View Source
/// <summary>
/// The parsed body content of a page.
/// </summary>
public sealed record PageContent
{
/// <summary>The rendered HTML body.</summary>
public required string Html { get; init; }
/// <summary>Plain text content (for search indexing).</summary>
public string PlainText { get; init; } = "";
/// <summary>Creates empty content.</summary>
public static PageContent Empty => new()
{
Html = ""
};
}