diff --git a/app/javascript/markdown-it-container-speak.js b/app/javascript/markdown-it-container-speak.js
index 6814504e072..b0bd344f575 100644
--- a/app/javascript/markdown-it-container-speak.js
+++ b/app/javascript/markdown-it-container-speak.js
@@ -11,7 +11,7 @@ export default (md) => {
return `
diff --git a/app/javascript/markdown-it-user-icon.js b/app/javascript/markdown-it-user-icon.js
index cd245115bf6..b827ceeabe2 100644
--- a/app/javascript/markdown-it-user-icon.js
+++ b/app/javascript/markdown-it-user-icon.js
@@ -4,6 +4,6 @@ export default MarkdownItRegexp(
/:@(?!mentor:)([a-zA-Z0-9_-]+):/,
(match) => {
- return `
`
+ return `
`
}
)
diff --git a/test/system/markdown_test.rb b/test/system/markdown_test.rb
index 13f549fef30..4336c54276b 100644
--- a/test/system/markdown_test.rb
+++ b/test/system/markdown_test.rb
@@ -13,7 +13,9 @@ class MarkdownTest < ApplicationSystemTestCase
assert_css '.a-long-text.is-md.js-markdown-view'
assert_css '.speak'
assert_css "a[href='/users/mentormentaro']"
- assert_includes find('.js-user-icon.a-user-emoji')['data-user'], 'mentormentaro'
+ emoji = find('.js-user-icon.a-user-emoji')
+ assert_includes emoji['title'], '@mentormentaro'
+ assert_includes emoji['data-user'], 'mentormentaro'
end
test 'user profile image markdown test' do
@@ -25,7 +27,9 @@ class MarkdownTest < ApplicationSystemTestCase
assert_css '.a-long-text.is-md.js-markdown-view'
assert_css "a[href='/users/mentormentaro']"
- assert_includes find('.js-user-icon.a-user-emoji')['data-user'], 'mentormentaro'
+ emoji = find('.js-user-icon.a-user-emoji')
+ assert_includes emoji['title'], '@mentormentaro'
+ assert_includes emoji['data-user'], 'mentormentaro'
end
def cmd_ctrl