mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
Fixes rubocop offenses (#40197).
git-svn-id: https://svn.redmine.org/redmine/trunk@23250 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
c0bb500242
commit
5851f65bb8
@ -41,7 +41,7 @@ module Redmine
|
||||
# https://github.com/gjtorikian/commonmarker#render-options
|
||||
commonmarker_render_options: {
|
||||
unsafe: true,
|
||||
hardbreaks: Redmine::Configuration['common_mark_enable_hardbreaks'] == true ? true : false,
|
||||
hardbreaks: Redmine::Configuration['common_mark_enable_hardbreaks'] == true,
|
||||
}.freeze,
|
||||
commonmarker_plugins: {
|
||||
syntax_highlighter: nil
|
||||
|
||||
@ -33,10 +33,10 @@ module Redmine
|
||||
|
||||
def call
|
||||
html = Commonmarker.to_html(@text, options: {
|
||||
extension: extensions,
|
||||
extension: extensions,
|
||||
render: render_options,
|
||||
parse: parse_options
|
||||
}, plugins: plugins )
|
||||
}, plugins: plugins)
|
||||
|
||||
html.rstrip!
|
||||
html
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user