summaryrefslogtreecommitdiff
path: root/lib/banzai/pipeline/atom_pipeline.rb
diff options
context:
space:
mode:
authorBrett Walker <bwalker@gitlab.com>2018-12-20 20:22:27 -0600
committerBrett Walker <bwalker@gitlab.com>2019-01-08 14:03:13 -0600
commitbdeb64e0b9785ab16d73da1632bda4213c14ff8a (patch)
tree477b2be1adc7ad66aad36ff338453c0e7cd43158 /lib/banzai/pipeline/atom_pipeline.rb
parent1b3affafab0f28c690ce93cc98ac6bd09cbda59f (diff)
downloadgitlab-ce-bw-enable-sourcepos.tar.gz
Enable CommonMark source line position informationbw-enable-sourcepos
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/atom_pipeline.rb')
-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