dev_forum
SylorHuang 6 years ago
parent eedaff8a9a
commit 9c7523a852

@ -345,9 +345,8 @@ module ApplicationHelper
:superscript => true,
:tables => true
}
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML,options)
markdown.render(text).html_safe
markdown.render(text)
end
end

@ -75,10 +75,10 @@
<% q_name = q_markdown_name&.include?("src=\"") ? q_markdown_name&.gsub("src=\"","src=\"#{@request_url}")&.html_safe : q_markdown_name %>
<span class="ques-title" id="ques_marked_<%= index %>"><%= q_name %></span>
<div class="mt8 text-gray">
<span id="ques_title_<%= index %>"><%= q_title %></span>
<span id="ques_title_<%= index %>"><%= q_markdown %></span>
</div>
<% else %>
<span class="ques-title" id="ques_title_<%= index %>"><%= q_title %></span>
<span class="ques-title" id="ques_title_<%= index %>"><%= q_markdown %></span>
<% end %>
</div>
<div class="pbt5">

Loading…
Cancel
Save