A Markdown member name is reserved

Your Markdown record declares a member that Bevel used to fill in, like Html.

  • Error
  • BEVEL080

What it means

Bevel no longer renders Markdown for you. Html, Excerpt, WordCount, ReadingMinutes and Headings are not filled in, so if the front matter does not supply them, they stay empty.

Example message

text
Data/Posts/BlogPost.cs(6,15): error BEVEL080: Dataset 'Posts': 'hello.md': 'Html' is not provided for Markdown datasets. Bevel no longer renders Markdown at build time. Remove it from the record and render 'RawMarkdown' (the body without front matter) in a Razor component, or compute the value at build time with [Process<TProcessor>(nameof(RawMarkdown))] and an IProcessor<TSource, TResult>. Help: https://khalidabuhakmeh.github.io/bevel/reference/diagnostics/bevel080/

How to fix

Remove the member, then either render RawMarkdown in a component, or compute the value with a processor.

csharp
public sealed record BlogPost(string Title)
{
    public string Html { get; init; }
    [Process<MarkdownToHtml>(nameof(RawMarkdown))]
    public string Html { get; init; } = "";
}