<% if q.question_type == 5 %>
-
<%= q.shixun_name.present? ? q.shixun_name.html_safe : "" %>
+
<%= to_markdown(q.shixun_name,@request_url) %>
- <%= q.question_title.present? ? q.question_title.html_safe : "" %>
+ <%= to_markdown(q.question_title,@request_url) %>
<% else %>
-
<%= q.question_title.present? ? q.question_title.html_safe : "" %>
+
<%= to_markdown(q.question_title,@request_url) %>
<% end %>
<% if q.question_type == 0 %>
<% q.exercise_choices.each_with_index do |s,index| %>
-
-
- <%= convert_to_char((index+1).to_s)%><%= s.choice_text%>
-
+
+
+ <%= to_markdown("#{(index+65).chr}.#{s.choice_text}",@request_url) %>
+
<% end %>
<% elsif q.question_type == 1 %>
<% q.exercise_choices.each_with_index do |s,index| %>
-
-
- <%= convert_to_char((index+1).to_s)%><%= s.choice_text%>
-
+
+
+ <%= to_markdown("#{(index+65).chr}.#{s.choice_text}",@request_url) %>
+
<% end %>
<% elsif q.question_type == 2 %>
-
+
<% q.exercise_choices.each_with_index do |s,index| %>
-
- <%= s.choice_text %>
+
+ <%= "#{(index+65).chr}.#{s.choice_text}" %>
<% end %>
-
+
<% elsif q.question_type == 3 %>
<% st_counts = q.exercise_standard_answers.pluck(:exercise_choice_id).uniq %>
<% st_counts.each_with_index do |s,index| %>
@@ -126,4 +134,5 @@