diff options
author | Brett Walker <bwalker@gitlab.com> | 2018-12-20 20:22:27 -0600 |
---|---|---|
committer | Brett Walker <bwalker@gitlab.com> | 2019-01-21 13:45:16 -0600 |
commit | 45a04f93747a128588268395071f00d0af70acd7 (patch) | |
tree | 308c01c9537fa30f72f6a8649ce699a8045fe652 /spec/serializers | |
parent | c141d0afb15366beb1cae8a240faf6aaeb632214 (diff) | |
download | gitlab-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 'spec/serializers')
-rw-r--r-- | spec/serializers/group_child_entity_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/serializers/group_child_entity_spec.rb b/spec/serializers/group_child_entity_spec.rb index dbc40bddc30..7f2ddc9546a 100644 --- a/spec/serializers/group_child_entity_spec.rb +++ b/spec/serializers/group_child_entity_spec.rb @@ -102,7 +102,7 @@ describe GroupChildEntity do let(:description) { ':smile:' } it 'has the correct markdown_description' do - expect(json[:markdown_description]).to eq('<p dir="auto"><gl-emoji title="smiling face with open mouth and smiling eyes" data-name="smile" data-unicode-version="6.0">😄</gl-emoji></p>') + expect(json[:markdown_description]).to eq('<p data-sourcepos="1:1-1:7" dir="auto"><gl-emoji title="smiling face with open mouth and smiling eyes" data-name="smile" data-unicode-version="6.0">😄</gl-emoji></p>') end end |