Feature #32424 » 0002-attachments_helper-commonmark.patch
| app/helpers/attachments_helper.rb | ||
|---|---|---|
| 88 | 88 | |
| 89 | 89 | def render_file_content(attachment, content) | 
| 90 | 90 | if attachment.is_markdown? | 
| 91 |       render :partial => 'common/markup', :locals => {:markup_text_formatting => 'markdown', :markup_text => content} | |
| 91 |       render :partial => 'common/markup', :locals => {:markup_text_formatting => 'common_mark', :markup_text => content} | |
| 92 | 92 | elsif attachment.is_textile? | 
| 93 | 93 |       render :partial => 'common/markup', :locals => {:markup_text_formatting => 'textile', :markup_text => content} | 
| 94 | 94 | else |