summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2021-08-11 21:52:04 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2021-08-11 21:52:04 +0000
commitb897b13ba8212b9ede6fa207483bcb69c8ec6fa9 (patch)
treee4632e5d8e9448da4dfe0745945829c4d9e29ec2 /app/views
parentc1b3804555994cb81ba6742894124f9d8c42e05c (diff)
downloadredmine-b897b13ba8212b9ede6fa207483bcb69c8ec6fa9.tar.gz
redmine-b897b13ba8212b9ede6fa207483bcb69c8ec6fa9.zip
Render markdown attachments using markdown or common_mark based on the text formatting setting (#32424).
Patch by Marius BÄ‚LTEANU and Martin Cizek. git-svn-id: http://svn.redmine.org/redmine/trunk@21165 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/repositories/entry.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/repositories/entry.html.erb b/app/views/repositories/entry.html.erb
index 4f8678bea..831e8044a 100644
--- a/app/views/repositories/entry.html.erb
+++ b/app/views/repositories/entry.html.erb
@@ -13,7 +13,7 @@
<% elsif Redmine::MimeType.of(@path) == 'text/x-textile' %>
<%= render :partial => 'common/markup', :locals => {:markup_text_formatting => 'textile', :markup_text => @content} %>
<% elsif Redmine::MimeType.of(@path) == 'text/markdown' %>
- <%= render :partial => 'common/markup', :locals => {:markup_text_formatting => 'markdown', :markup_text => @content} %>
+ <%= render :partial => 'common/markup', :locals => {:markup_text_formatting => markdown_formatter, :markup_text => @content} %>
<% elsif @content %>
<%= render :partial => 'common/file', :locals => {:filename => @path, :content => @content} %>
<% else %>