debian-mirror-gitlab/lib/banzai/pipeline/description_pipeline.rb
2016-06-16 23:09:34 +05:30

16 lines
437 B
Ruby

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