BigW Consortium Gitlab

Commit a9346cab by Rémy Coutable

Merge branch 'rs-banzai-requires' into 'master'

Remove redundant `require`s from Banzai files We're trying to avoid circular dependency errors. Related: https://gitlab.com/gitlab-org/gitlab-ce/issues/13521 Sentry: https://sentry.gitlap.com/gitlab/gitlabcom/issues/8/ See merge request !3391
parents 4a439856 85584834
require 'active_support/core_ext/string/output_safety'
module Banzai module Banzai
module Filter module Filter
def self.[](name) def self.[](name)
......
require 'html/pipeline/filter'
require 'uri' require 'uri'
module Banzai module Banzai
......
require 'action_controller'
require 'gitlab_emoji'
require 'html/pipeline/filter'
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces :emoji: with images. # HTML filter that replaces :emoji: with images.
......
require 'html/pipeline/filter'
module Banzai module Banzai
module Filter module Filter
# HTML Filter to add a `rel="nofollow"` attribute to external links # HTML Filter to add a `rel="nofollow"` attribute to external links
......
require 'banzai'
require 'html/pipeline/filter'
module Banzai module Banzai
module Filter module Filter
# HTML Filter for parsing Gollum's tags in HTML. It's only parses the # HTML Filter for parsing Gollum's tags in HTML. It's only parses the
......
require 'html/pipeline/filter'
module Banzai module Banzai
module Filter module Filter
class MarkdownFilter < HTML::Pipeline::TextFilter class MarkdownFilter < HTML::Pipeline::TextFilter
......
require 'banzai'
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces milestone references with links. # HTML filter that replaces milestone references with links.
......
require 'html/pipeline/filter'
module Banzai module Banzai
module Filter module Filter
# HTML filter that removes references to records that the current user does # HTML filter that removes references to records that the current user does
......
require 'active_support/core_ext/string/output_safety'
require 'html/pipeline/filter'
module Banzai module Banzai
module Filter module Filter
# Base class for GitLab Flavored Markdown reference filters. # Base class for GitLab Flavored Markdown reference filters.
......
require 'html/pipeline/filter'
module Banzai module Banzai
module Filter module Filter
# HTML filter that gathers all referenced records that the current user has # HTML filter that gathers all referenced records that the current user has
......
require 'html/pipeline/filter'
require 'uri' require 'uri'
module Banzai module Banzai
......
require 'html/pipeline/filter'
require 'html/pipeline/sanitization_filter'
module Banzai module Banzai
module Filter module Filter
# Sanitize HTML # Sanitize HTML
......
require 'html/pipeline/filter'
require 'rouge/plugins/redcarpet' require 'rouge/plugins/redcarpet'
module Banzai module Banzai
......
require 'html/pipeline/filter'
module Banzai module Banzai
module Filter module Filter
# HTML filter that adds an anchor child element to all Headers in a # HTML filter that adds an anchor child element to all Headers in a
......
require 'html/pipeline/filter'
require 'uri' require 'uri'
module Banzai module Banzai
......
require 'html/pipeline/filter'
require 'yaml'
module Banzai module Banzai
module Filter module Filter
class YamlFrontMatterFilter < HTML::Pipeline::Filter class YamlFrontMatterFilter < HTML::Pipeline::Filter
......
require 'html/pipeline'
module Banzai module Banzai
module Pipeline module Pipeline
class BasePipeline class BasePipeline
......
require 'banzai'
module Banzai module Banzai
module Pipeline module Pipeline
class WikiPipeline < FullPipeline class WikiPipeline < FullPipeline
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment