diff options
Diffstat (limited to 'app/jrnl')
-rw-r--r-- | app/jrnl/models.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/app/jrnl/models.py b/app/jrnl/models.py index 6d55d2e..7332321 100644 --- a/app/jrnl/models.py +++ b/app/jrnl/models.py @@ -170,12 +170,8 @@ class Entry(models.Model): def save(self): if self.pk: - if (self.pk >= 163 and self.pk != 166) or self.pk == 129: - md = render_images(self.body_markdown) - self.body_html = markdown_to_html(md) - else: - md = image_url_replace(self.body_markdown) - self.body_html = markdown.markdown(md, extensions=['extra'], safe_mode=False) + md = render_images(self.body_markdown) + self.body_html = markdown_to_html(md) self.has_video = parse_video(self.body_html) try: self.location = Location.objects.filter(geometry__contains=self.point).get() |