mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
added monaco editor to assignment page
This commit is contained in:
@@ -26,6 +26,8 @@ public record LocalQuiz
|
||||
.FirstOrDefault(g => g.Name == LocalAssignmentGroupName)?
|
||||
.CanvasId;
|
||||
|
||||
public string GetDescriptionHtml() => Markdig.Markdown.ToHtml(Description);
|
||||
|
||||
public string ToYaml()
|
||||
{
|
||||
var serializer = new SerializerBuilder().DisableAliases().Build();
|
||||
|
||||
@@ -26,8 +26,9 @@ public record LocalQuizQuestion
|
||||
: $"[{correctIndicator}] ";
|
||||
|
||||
// var textWithSpecificNewline = answer.Text.Replace(Environment.NewLine, Environment.NewLine + " ");
|
||||
|
||||
var multilineMarkdownCompatibleText = answer.Text.StartsWith("```")
|
||||
? Environment.NewLine + answer.Text
|
||||
? Environment.NewLine + answer.Text
|
||||
: answer.Text;
|
||||
return $"{questionTypeIndicator}{multilineMarkdownCompatibleText}";
|
||||
});
|
||||
|
||||
@@ -19,7 +19,7 @@ public record LocalQuizQuestionAnswer
|
||||
return new LocalQuizQuestionAnswer()
|
||||
{
|
||||
Correct = isCorrect,
|
||||
Text=text,
|
||||
Text = text,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user