added border around today

This commit is contained in:
2023-09-08 13:44:10 -06:00
parent 2b154d186d
commit c2ce788627
5 changed files with 14 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ public record CanvasQuizAnswer
public required string Text { get; init; }
[JsonPropertyName("html")]
public required string Html { get; init; }
public string? Html { get; init; }
[JsonPropertyName("weight")]
public double Weight { get; init; }

View File

@@ -4,7 +4,8 @@ public record LocalQuizQuestion
{
public ulong? CanvasId { get; set; }
public string Id { get; set; } = "";
public string Text { get; init; } = string.Empty;
public string Text { get; init; } = string.Empty;
public string HtmlText => Markdig.Markdown.ToHtml(Text);
public string QuestionType { get; init; } = string.Empty;
public int Points { get; init; }
public IEnumerable<LocalQuizQuestionAnswer> Answers { get; init; } =

View File

@@ -8,4 +8,6 @@ public record LocalQuizQuestionAnswer
//correct gets a weight of 100 in canvas
public bool Correct { get; init; }
public string Text { get; init; } = string.Empty;
public string HtmlText => Markdig.Markdown.ToHtml(Text);
}