diff --git a/rhodecode/lib/helpers.py b/rhodecode/lib/helpers.py --- a/rhodecode/lib/helpers.py +++ b/rhodecode/lib/helpers.py @@ -717,3 +717,12 @@ def urlify_text(text): def rst(source): return literal('
%s
' % MarkupRenderer.rst(source)) + +def rst_w_mentions(source): + """ + Wrapped rst renderer with @mention highlighting + + :param source: + """ + return literal('
%s
' % + MarkupRenderer.rst_with_mentions(source))