gitlab-org--gitlab-foss/spec/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
reference_parser
color_parser_spec.rb
commit_renderer_spec.rb
cross_project_reference_spec.rb
filter_array_spec.rb
issuable_extractor_spec.rb
object_renderer_spec.rb
querying_spec.rb
redactor_spec.rb
render_context_spec.rb
renderer_spec.rb