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 at the same URL with .md appended. 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

IContentRenderer Pennington.Pipeline

Renders a parsed item into HTML.

Methods

RenderAsync

#
public Task<ContentItem> RenderAsync(ParsedItem item)

Render a parsed item. Returns RenderedItem on success, FailedItem on failure.

Parameters

item ParsedItem

Returns

Task<ContentItem>

Pennington.Pipeline.IContentRenderer

namespace Pennington.Pipeline;

/// Renders a parsed item into HTML.
public interface IContentRenderer
{
    /// Render a parsed item. Returns RenderedItem on success, FailedItem on failure.
    
public Task<ContentItem> RenderAsync(ParsedItem item)
; }