RazorContentRenderer
Pennington.Pipeline
Base IContentRenderer that renders a Razor component TComponent to HTML. A subclass projects a ParsedItem into the component's parameters via BuildParameters; this base owns the Blazor HtmlRenderer dispatch, heading-anchor assignment, and outline extraction. A structured content format therefore renders through Razor markup the way markdown renders through Markdig — both produce a RenderedContent. The host must register Razor component services (AddRazorComponents()).
Methods
RenderAsync
#public Task<ContentItem> RenderAsync(ParsedItem item)
Render a parsed item. Returns RenderedItem on success, FailedItem on failure.
Parameters
itemParsedItem
Returns
Task<ContentItem>Pennington.Pipeline.RazorContentRenderer
namespace Pennington.Pipeline;
/// Base IContentRenderer that renders a Razor component TComponent to HTML. A subclass projects a ParsedItem into the component's parameters via BuildParameters; this base owns the Blazor HtmlRenderer dispatch, heading-anchor assignment, and outline extraction. A structured content format therefore renders through Razor markup the way markdown renders through Markdig — both produce a RenderedContent. The host must register Razor component services (AddRazorComponents()).
public class RazorContentRenderer
{
/// Render a parsed item. Returns RenderedItem on success, FailedItem on failure.
public Task<ContentItem> RenderAsync(ParsedItem item)
;
}