This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

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)
; }