gitlab-org--gitlab-foss/lib/banzai/pipeline/atom_pipeline.rb
Brett Walker 45a04f9374 Enable CommonMark source line position information
This adds 'data-sourcepos' to tags, indicating which
line of markdown it came from.  Sets the stage for
intelligently manipulating specific lines of markdown.
2019-01-21 13:45:16 -06:00

15 lines
291 B
Ruby

# frozen_string_literal: true
module Banzai
module Pipeline
class AtomPipeline < FullPipeline
def self.transform_context(context)
super(context).merge(
only_path: false,
xhtml: true,
no_sourcepos: true
)
end
end
end
end