mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 15:48:32 -06:00
got rubric creation working
This commit is contained in:
@@ -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 = Markdig.Markdown.ToHtml(template.Markdown);
|
||||
|
||||
foreach (KeyValuePair<string, string> entry in assignment.template_variables)
|
||||
{
|
||||
html = html.Replace($"%7B%7B{entry.Key}%7D%7D", entry.Value);
|
||||
}
|
||||
return html;
|
||||
}
|
||||
// foreach (KeyValuePair<string, string> entry in assignment.template_variables)
|
||||
// {
|
||||
// html = html.Replace($"%7B%7B{entry.Key}%7D%7D", entry.Value);
|
||||
// }
|
||||
// return html;
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user