FrontMatterResult Pennington.FrontMatter
Result of front matter parsing.
Properties
Bodystring- Markdown body with the front matter block stripped.
MetadataT?- Default:
nullDeserialized front matter, ornullwhen the content had no front matter block.
Constructors
.ctor
#public record FrontMatterResult<T>(T? Metadata, string Body) where T : IFrontMatter;Result of front matter parsing.
Parameters
MetadataT?- Deserialized front matter, or
nullwhen the content had no front matter block. Bodystring- Markdown body with the front matter block stripped.
Pennington.FrontMatter.FrontMatterResult
namespace Pennington.FrontMatter;
/// Result of front matter parsing.
public record FrontMatterResult
{
/// Result of front matter parsing.
public record FrontMatterResult<T>(T? Metadata, string Body) where T : IFrontMatter;
/// Markdown body with the front matter block stripped.
string Body
;
/// Deserialized front matter, or null when the content had no front matter block.
T? Metadata
;
}