debian-mirror-gitlab/lib/banzai/pipeline/description_pipeline.rb

17 lines
437 B
Ruby
Raw Normal View History

2015-12-23 02:04:40 +05:30
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)
)
2015-12-23 02:04:40 +05:30
def self.transform_context(context)
super(context).merge(
# SanitizationFilter
whitelist: WHITELIST
2015-12-23 02:04:40 +05:30
)
end
end
end
end