working on markdown quiz experience

This commit is contained in:
2023-10-12 15:08:52 -06:00
parent e5defbc0cf
commit 4aa045d952
6 changed files with 193 additions and 72 deletions

View File

@@ -66,7 +66,7 @@ Description: {Description}
var questions = splitInput[1..]
.Where(str => !string.IsNullOrWhiteSpace(str))
.Select(q => LocalQuizQuestion.ParseMarkdown(q))
.Select((q, i) => LocalQuizQuestion.ParseMarkdown(q, i))
.ToArray();
return quizWithoutQuestions with
{
@@ -128,3 +128,11 @@ Description: {Description}
return string.Empty;
}
}
public class QuizMarkdownParseException : Exception
{
public QuizMarkdownParseException(string message): base(message)
{
}
}