X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/fac2bf37e4b1032efe670d5f63d126ff9faa6f88..46b868a3f5ffa8f693808cb832306286802124f4:/forum/models/comment.py?ds=inline 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