gitlab-org--gitlab-foss/lib/banzai
Stan Hu be495c6a80 Fix slow Markdown rendering
The sanitize transformers were being duplicated each time the Markdown
renderer was called, leading to expontential growth in rendering times.

The problem was that although HTML::Pipeline::SanitizationFilter.WHITELIST
is a frozen hash, the `:transformers` array can be modified. We need
to do deep copy of this to avoid adding duplicates.

Closes #49409
2018-07-24 13:00:49 -07:00
..
filter Fix slow Markdown rendering 2018-07-24 13:00:49 -07:00
pipeline Extract EE-specific lines from Banzai pipelines 2018-07-13 12:37:46 +01:00
reference_parser Eager load project routes for issue references 2018-05-28 13:38:20 +02:00
renderer make call to 'html_escape' unambiguous 2018-04-17 11:39:11 +02:00
color_parser.rb
commit_renderer.rb Support Markdown rendering using multiple projects 2018-04-11 14:10:19 +02:00
cross_project_reference.rb
filter.rb
filter_array.rb
issuable_extractor.rb Support Markdown rendering using multiple projects 2018-04-11 14:10:19 +02:00
object_renderer.rb Support Markdown rendering using multiple projects 2018-04-11 14:10:19 +02:00
pipeline.rb
querying.rb
redactor.rb Support Markdown rendering using multiple projects 2018-04-11 14:10:19 +02:00
reference_extractor.rb Support Markdown rendering using multiple projects 2018-04-11 14:10:19 +02:00
reference_parser.rb
render_context.rb Support Markdown rendering using multiple projects 2018-04-11 14:10:19 +02:00
renderer.rb
request_store_reference_cache.rb