feat: Adds support for superscript in help center articles (#7279)

- Adds support for superscript when rendering article markdown
- Chatwoot Markdown Render to render markdown everywhere

Co-authored-by: Sojan <sojan@pepalo.com>
This commit is contained in:
Nithin David Thomas
2023-06-14 15:39:00 +05:30
committed by GitHub
parent 2e79a32db7
commit d2aa19579e
11 changed files with 159 additions and 11 deletions

View File

@@ -7,7 +7,7 @@
<tr>
<td style="padding-bottom: 16px;">
<% if message.content %>
<%= CommonMarker.render_html(message.content).html_safe %>
<%= ChatwootMarkdownRenderer.new(message_content).render_message %>
<% end %>
<% if message.attachments %>
<% message.attachments.each do |attachment| %>