Mercurial > kallithea
comparison rhodecode/lib/helpers.py @ 1769:025f3333c769 beta
@mention highlighting
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 08 Dec 2011 03:36:13 +0200 |
parents | 468afe69f2a8 |
children | 22333ddd1a40 |
comparison
equal
deleted
inserted
replaced
1768:5610fd9b6803 | 1769:025f3333c769 |
---|---|
715 | 715 |
716 | 716 |
717 def rst(source): | 717 def rst(source): |
718 return literal('<div class="rst-block">%s</div>' % | 718 return literal('<div class="rst-block">%s</div>' % |
719 MarkupRenderer.rst(source)) | 719 MarkupRenderer.rst(source)) |
720 | |
721 def rst_w_mentions(source): | |
722 """ | |
723 Wrapped rst renderer with @mention highlighting | |
724 | |
725 :param source: | |
726 """ | |
727 return literal('<div class="rst-block">%s</div>' % | |
728 MarkupRenderer.rst_with_mentions(source)) |