This site provides a machine-readable index at /llms.txt.

Skip to main content Skip to navigation

XmlDocHtmlRenderer Pennington.ApiMetadata

Renders XmlDocNode trees into HTML for display in the DocSite.

Methods

RenderHtml

#
public string RenderHtml(IEnumerable<XmlDocNode> nodes);

Renders the nodes as block-level HTML, wrapping loose inline content in <p> and emitting <pre>/<ul>/<ol> for code blocks and lists.

Parameters

nodes IEnumerable<XmlDocNode>

Returns

string

RenderInlineHtml

#
public string RenderInlineHtml(IEnumerable<XmlDocNode> nodes);

Renders the nodes as inline HTML without wrapping paragraphs, suitable for embedding inside an existing block element.

Parameters

nodes IEnumerable<XmlDocNode>

Returns

string

Pennington.ApiMetadata.XmlDocHtmlRenderer

namespace Pennington.ApiMetadata;

/// Renders XmlDocNode trees into HTML for display in the DocSite.
public class XmlDocHtmlRenderer
{
    /// Renders the nodes as block-level HTML, wrapping loose inline content in <p> and emitting <pre>/<ul>/<ol> for code blocks and lists.
    
public string RenderHtml(IEnumerable<XmlDocNode> nodes);
/// Renders the nodes as inline HTML without wrapping paragraphs, suitable for embedding inside an existing block element.
public string RenderInlineHtml(IEnumerable<XmlDocNode> nodes);
}