debian-mirror-gitlab/lib/banzai/pipeline/description_pipeline.rb
2018-12-13 13:39:08 +05:30

18 lines
468 B
Ruby

# frozen_string_literal: true
module Banzai
module Pipeline
class DescriptionPipeline < FullPipeline
WHITELIST = Banzai::Filter::SanitizationFilter::LIMITED.deep_dup.merge(
elements: Banzai::Filter::SanitizationFilter::LIMITED[:elements] - %w(pre code img ol ul li)
)
def self.transform_context(context)
super(context).merge(
# SanitizationFilter
whitelist: WHITELIST
)
end
end
end
end