updated to add advanced extensions to markdown

This commit is contained in:
2024-03-26 13:42:10 -06:00
parent 9ffd60ac84
commit a9269c8d2b
13 changed files with 42 additions and 32 deletions

View File

@@ -15,16 +15,16 @@ public record AssignmentTemplate
return matches.Select(match => match.Groups[1].Value);
}
// public static string GetHtml(AssignmentTemplate template, LocalAssignment assignment)
// public static string GetHtml(AssignmentTemplate template, LocalAssignment assignment)
// {
// var html = Markdig.Markdown.ToHtml(template.Markdown);
// var html = MarkdownService.Render(template.Markdown);
// foreach (KeyValuePair<string, string> entry in assignment.template_variables)
// {
// html = html.Replace($"%7B%7B{entry.Key}%7D%7D", entry.Value);
// }
// return html;
// }
// }
}