before I dive too much more into adding pages in canvas

This commit is contained in:
2024-01-12 15:57:35 -07:00
parent 9f19704724
commit bca8497255
17 changed files with 472 additions and 60 deletions

View File

@@ -5,6 +5,7 @@ public record LocalCoursePage: IModuleItem
public required string Name { get; init; }
public required string Text { get; set; }
public DateTime DueAt { get; init; }
public string GetBodyHtml() => Markdig.Markdown.ToHtml(Text);
public string ToMarkdown()
{
@@ -34,6 +35,7 @@ public record LocalCoursePage: IModuleItem
Text = text
};
}
}