]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/models/comment.py
OSQA-436, now we support hyphens in the usernames too. Changing the username regex...
[osqa.git] / forum / models / comment.py
index b62e7b5e97e6b399498cfa40049129d63ba2bb3f..32fdf5dfe3596c91858e424b262548ac635023b2 100644 (file)
@@ -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