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

ParsedItem Pennington.Pipeline

A content item whose front matter and raw markdown body have been parsed.

Properties

Derived IReadOnlyDictionary<string, object>
Derived, non-authored metadata contributed by IMetadataEnricher implementations (reading time, git last-modified, permalinks, …), keyed by enricher-defined names. Kept separate from the strongly-typed Metadata so authored front matter stays the single source of truth.
Format string
Format key selecting the renderer for this item; defaults to "markdown".
Metadata IFrontMatter
Parsed front matter metadata.
RawMarkdown string
Markdown body text, with front matter stripped.
Route ContentRoute
Canonical route for the item.

Constructors

ParsedItem

#
public ParsedItem(ContentRoute Route, IFrontMatter Metadata, string RawMarkdown)

A content item whose front matter and raw markdown body have been parsed.

Parameters

Route ContentRoute
Canonical route for the item.
Metadata IFrontMatter
Parsed front matter metadata.
RawMarkdown string
Markdown body text, with front matter stripped.

Pennington.Pipeline.ParsedItem

namespace Pennington.Pipeline;

/// A content item whose front matter and raw markdown body have been parsed.
public record ParsedItem
{
    /// Derived, non-authored metadata contributed by IMetadataEnricher implementations (reading time, git last-modified, permalinks, …), keyed by enricher-defined names. Kept separate from the strongly-typed Metadata so authored front matter stays the single source of truth.
    
public IReadOnlyDictionary<string, object> Derived { get; set; }
/// Format key selecting the renderer for this item; defaults to "markdown".
public string Format { get; set; }
/// Parsed front matter metadata.
public IFrontMatter Metadata { get; set; }
/// A content item whose front matter and raw markdown body have been parsed.
public ParsedItem(ContentRoute Route, IFrontMatter Metadata, string RawMarkdown)
; /// Markdown body text, with front matter stripped.
public string RawMarkdown { get; set; }
/// Canonical route for the item.
public ContentRoute Route { get; set; }
}