OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
fix commonmarker options
as-opcccbc8c80359
diff --git a/lib/open_project/text_formatting/filters/markdown_filter.rb b/lib/open_project/text_formatting/filters/markdown_filter.rbindex 61d031f3792..1f95dfdc593 100644--- a/lib/open_project/text_formatting/filters/markdown_filter.rb+++ b/lib/open_project/text_formatting/filters/markdown_filter.rb@@ -39,7 +39,7 @@ module OpenProject::TextFormatting### Render markdown to htmldef render_html- Commonmarker.to_html(text, options: commonmarker_options)+ Commonmarker.to_html(text, options: commonmarker_options, plugins: commonmarker_plugins).tap(&:rstrip!)end@@ -51,13 +51,18 @@ module OpenProject::TextFormattingparse: { smart: false },extension: commonmark_extensions.map { |k| [k, true] }.to_h,render: {- unsafe_: true, # option is called unsafe_ not unsafe+ unsafe: true,+ escape: false,github_pre_lang: true,hardbreaks: context[:gfm] != false}}end+ def commonmarker_plugins+ { syntax_highlighter: nil }+ end+### Extensions to the default CommonMarker operationdef commonmark_extensions