feat(client): parse test 'text' as markdown (#39176)

This commit is contained in:
Oliver Eyton-Williams
2020-07-03 16:53:46 +02:00
committed by Mrugesh Mohapatra
parent f77005cc43
commit 0e1dca5924
3 changed files with 11 additions and 1 deletions

View File

@ -34,6 +34,12 @@ function plugin() {
);
tests.question.text = mdToHTML(tests.question.text);
}
if (tests.tests) {
tests.tests = tests.tests.map(({ text, testString }) => ({
text: mdToHTML(text),
testString
}));
}
file.data = {
...file.data,
...tests