summaryrefslogtreecommitdiff
path: root/lib/banzai/pipeline
diff options
context:
space:
mode:
authorBrett Walker <bwalker@gitlab.com>2018-12-20 20:22:27 -0600
committerBrett Walker <bwalker@gitlab.com>2019-01-21 13:45:16 -0600
commit45a04f93747a128588268395071f00d0af70acd7 (patch)
tree308c01c9537fa30f72f6a8649ce699a8045fe652 /lib/banzai/pipeline
parentc141d0afb15366beb1cae8a240faf6aaeb632214 (diff)
downloadgitlab-ce-45a04f93747a128588268395071f00d0af70acd7.tar.gz
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.
Diffstat (limited to 'lib/banzai/pipeline')
-rw-r--r--lib/banzai/pipeline/atom_pipeline.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/banzai/pipeline/atom_pipeline.rb b/lib/banzai/pipeline/atom_pipeline.rb
index 13a342351b6..c632910585d 100644
--- a/lib/banzai/pipeline/atom_pipeline.rb
+++ b/lib/banzai/pipeline/atom_pipeline.rb
@@ -6,7 +6,8 @@ module Banzai
def self.transform_context(context)
super(context).merge(
only_path: false,
- xhtml: true
+ xhtml: true,
+ no_sourcepos: true
)
end
end