X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/fac2bf37e4b1032efe670d5f63d126ff9faa6f88..7deaf42044d82ea939afa0b72b67c1e8877925c8:/forum/models/comment.py?ds=sidebyside diff --git a/forum/models/comment.py b/forum/models/comment.py index 32fdf5d..afa674f 100644 --- a/forum/models/comment.py +++ b/forum/models/comment.py @@ -16,9 +16,11 @@ class Comment(Node): @property def comment(self): + return self._comment() + + def _comment(self): if settings.FORM_ALLOW_MARKDOWN_IN_COMMENTS: - # Avoid doing double replacement of backslashes - return self._as_markdown_raw(self.body,'limitedsyntax') + return self.as_markdown('limitedsyntax') else: return self.body