gitlab-org--gitlab-foss/lib/banzai
Stan Hu 15bebda7f8 Make Redcarpet Markdown renderer thread-safe
The Redcarpet library is not thread-safe as described in
https://github.com/vmg/redcarpet/issues/570. Since we instantiate
the Redcarpet renderer in a class variable, multiple Sidekiq threads
can access the work buffer and corrupt the state. We work around
this issue by memoizing the renderer on a thread basis.

Closes #36637
2017-10-02 07:16:00 -07:00
..
filter Make Redcarpet Markdown renderer thread-safe 2017-10-02 07:16:00 -07:00
pipeline Remove ImageLazyLoadFilter from EmailPipeline 2017-09-12 11:54:14 -04:00
reference_parser Eliminate N+1 queries referencing issues 2017-09-18 20:38:25 -07:00
renderer Merge branch '30125-markdown-security' 2017-04-05 21:03:46 -07:00
commit_renderer.rb Adds cacheless render to Banzai object render 2017-09-06 15:35:35 +01:00
cross_project_reference.rb replace find_with_namespace with find_by_full_path 2017-02-03 07:14:04 +07:00
filter.rb Remove redundant requires from Banzai files 2016-03-24 13:23:47 -04:00
filter_array.rb Add FilterArray class to Banzai 2016-03-01 15:54:35 -05:00
issuable_extractor.rb issues_for_nodes => issuables_for_nodes 2017-04-26 13:11:49 +08:00
note_renderer.rb Use CacheMarkdownField for notes 2016-10-07 02:54:26 +01:00
object_renderer.rb Adds cacheless render to Banzai object render 2017-09-06 15:35:35 +01:00
pipeline.rb Prevent circular reference error in Banzai 2016-01-14 11:30:28 +01:00
querying.rb Create directly_addressed Todos when mentioned in beginning of a line 2017-02-08 21:53:34 +05:30
redactor.rb Fix Markdown styling inside reference links 2016-11-01 09:49:30 +00:00
reference_extractor.rb Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
reference_parser.rb Split Markdown rendering & reference gathering 2016-05-26 17:14:00 +02:00
renderer.rb Adds cacheless render to Banzai object render 2017-09-06 15:35:35 +01:00