ParsedItem Pennington.Pipeline
A content item whose front matter and raw markdown body have been parsed.
Properties
DerivedIReadOnlyDictionary<string, object>- Derived, non-authored metadata contributed by
IMetadataEnricherimplementations (reading time, git last-modified, permalinks, …), keyed by enricher-defined names. Kept separate from the strongly-typedMetadataso authored front matter stays the single source of truth. Formatstring- Format key selecting the renderer for this item; defaults to
"markdown". MetadataIFrontMatter- Parsed front matter metadata.
RawMarkdownstring- Markdown body text, with front matter stripped.
RouteContentRoute- 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
RouteContentRoute- Canonical route for the item.
MetadataIFrontMatter- Parsed front matter metadata.
RawMarkdownstring- 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; }
}