X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/58f020d4fab8251103edb89bfc4cf5d5d389d1ad..cf523df2eb6e7b696c693e68b449a2c541bbaa67:/forum/models/comment.py diff --git a/forum/models/comment.py b/forum/models/comment.py index b62e7b5..32fdf5d 100644 --- a/forum/models/comment.py +++ b/forum/models/comment.py @@ -17,7 +17,8 @@ class Comment(Node): @property def comment(self): if settings.FORM_ALLOW_MARKDOWN_IN_COMMENTS: - return self.as_markdown('limitedsyntax') + # Avoid doing double replacement of backslashes + return self._as_markdown_raw(self.body,'limitedsyntax') else: return self.body