X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/fac2bf37e4b1032efe670d5f63d126ff9faa6f88..50637480556844227df0b01d911302110eed70a3:/forum/models/comment.py 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