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
disable options that became active by bumping commonmarker
ulferts9c9eed6f2c11
diff --git a/lib/open_project/text_formatting/filters/markdown_filter.rb b/lib/open_project/text_formatting/filters/markdown_filter.rbindex 5ebd68ccc5e..70dbdfd2d2f 100644--- a/lib/open_project/text_formatting/filters/markdown_filter.rb+++ b/lib/open_project/text_formatting/filters/markdown_filter.rb@@ -43,12 +43,13 @@ module OpenProject::TextFormattingdef commonmarker_options{parse: { smart: false },- extension: commonmark_extensions.index_with(true),+ extension: commonmark_extensions,render: {unsafe: true,escape: false,github_pre_lang: true,- hardbreaks: context[:gfm] != false+ hardbreaks: context[:gfm] != false,+ escaped_char_spans: false}}end@@ -60,7 +61,11 @@ module OpenProject::TextFormatting### Extensions to the default CommonMarker operationdef commonmark_extensions- context.fetch :commonmarker_extensions, %i[table strikethrough tagfilter]+ # Disable all the extension enabled by default by commonmarker.+ %i[strikethrough tagfilter table autolink tasklist shortcodes]+ .index_with(false)+ # But enable those that the context has enabled explicitly+ .merge(context.fetch(:commonmarker_extensions, %i[table strikethrough tagfilter]).index_with(true))endendend