fix: Use commonmarker instead of redcarpet (#1732)

This commit is contained in:
Pranav Raj S
2021-02-05 11:24:18 +05:30
committed by GitHub
parent 2012aab1d5
commit 351403457e
5 changed files with 9 additions and 10 deletions

View File

@@ -1,4 +1,3 @@
<% markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, autolink: true, tables: true) %>
<% @messages.each do |message| %>
<tr>
<td>
@@ -8,7 +7,7 @@
<tr>
<td style="padding-bottom: 16px;">
<% if message.content %>
<%= markdown.render(message.content).html_safe %>
<%= CommonMarker.render_html(message.content).html_safe %>
<% end %>
<% if message.attachments %>
<% message.attachments.each do |attachment| %>