diff --git a/app/labor/markdown_parser.rb b/app/labor/markdown_parser.rb index b7b4eb773..677aaab09 100644 --- a/app/labor/markdown_parser.rb +++ b/app/labor/markdown_parser.rb @@ -203,23 +203,22 @@ class MarkdownParser def wrap_mentions_with_links!(html) html_doc = Nokogiri::HTML(html) - # looks for node that isn't , , and contains "@" - html_doc.xpath('//*[not (self::code) and not(self::a) and contains(text(), "@")]').each do |node| - # if the target node is a

,