From 6dcccd324b06f7dc36f8e29c06ba7fbc0f9f1fe4 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Thu, 25 Aug 2022 00:23:08 +0200 Subject: [PATCH] Show feedback without rendering Markdown * We do not instruct learners how to write Markdown, this might yield to an unexpected rendering --- app/views/exercises/feedback.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/exercises/feedback.html.slim b/app/views/exercises/feedback.html.slim index 5085ed8c..292b6d9d 100644 --- a/app/views/exercises/feedback.html.slim +++ b/app/views/exercises/feedback.html.slim @@ -25,7 +25,7 @@ h1 = link_to_if(policy(@exercise).show?, @exercise, exercise_path(@exercise)) span.date = feedback.created_at .card-collapse role="tabpanel" .card-body.feedback - .text = render_markdown(feedback.feedback_text) + .text = feedback.feedback_text .difficulty = "#{t('user_exercise_feedback.difficulty')} #{comment_presets[feedback.difficulty].join(' - ')}" if feedback.difficulty .worktime = "#{t('user_exercise_feedback.working_time')} #{time_presets[feedback.user_estimated_worktime].join(' - ')}" if feedback.user_estimated_worktime - if policy(@exercise).detailed_statistics?