mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 15:48:32 -06:00
updated to add advanced extensions to markdown
This commit is contained in:
@@ -30,7 +30,7 @@ public record LocalQuiz : IModuleItem
|
||||
.FirstOrDefault(g => g.Name == LocalAssignmentGroupName)?
|
||||
.CanvasId;
|
||||
|
||||
public string GetDescriptionHtml() => Markdig.Markdown.ToHtml(Description);
|
||||
public string GetDescriptionHtml() => MarkdownService.Render(Description);
|
||||
|
||||
public string ToYaml()
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace LocalModels;
|
||||
public record LocalQuizQuestion
|
||||
{
|
||||
public string Text { get; init; } = string.Empty;
|
||||
public string HtmlText => Markdig.Markdown.ToHtml(Text);
|
||||
public string HtmlText => MarkdownService.Render(Text);
|
||||
public string QuestionType { get; init; } = string.Empty;
|
||||
public int Points { get; init; }
|
||||
public IEnumerable<LocalQuizQuestionAnswer> Answers { get; init; } =
|
||||
|
||||
@@ -10,7 +10,7 @@ public record LocalQuizQuestionAnswer
|
||||
|
||||
public string? MatchedText { get; init; }
|
||||
|
||||
public string HtmlText => Markdig.Markdown.ToHtml(Text);
|
||||
public string HtmlText => MarkdownService.Render(Text);
|
||||
|
||||
public static LocalQuizQuestionAnswer ParseMarkdown(string input, string questionType)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user