summaryrefslogtreecommitdiffstats
path: root/app/views/common
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-10-03 00:09:28 +0000
committerGo MAEDA <maeda@farend.jp>2019-10-03 00:09:28 +0000
commit3ce678510e96fa0ce5459e6b7731878347f686b2 (patch)
tree6d556d89e83137e55f382af2377abd8bda0f61fa /app/views/common
parentdf1c54146f36e16becb4de7137074238ca496776 (diff)
downloadredmine-3ce678510e96fa0ce5459e6b7731878347f686b2.tar.gz
redmine-3ce678510e96fa0ce5459e6b7731878347f686b2.zip
Render Textile and Markdown attachments on the preview page (#29752).
Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@18584 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/common')
-rw-r--r--app/views/common/_markup.html.erb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/common/_markup.html.erb b/app/views/common/_markup.html.erb
new file mode 100644
index 000000000..dc6c7f474
--- /dev/null
+++ b/app/views/common/_markup.html.erb
@@ -0,0 +1,3 @@
+<div class="wiki">
+ <%= Redmine::WikiFormatting.to_html(markup_text_formatting, Redmine::CodesetUtil.to_utf8_by_setting(markup_text)).html_safe %>
+</div>