diff options
Diffstat (limited to 'app/posts/models.py')
-rw-r--r-- | app/posts/models.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/posts/models.py b/app/posts/models.py index 1d71ecb..2168df1 100644 --- a/app/posts/models.py +++ b/app/posts/models.py @@ -30,7 +30,7 @@ from books.models import Book from fieldnotes.models import FieldNote from taxonomy.models import TaggedItems, Category from jrnl.models import Entry -from utils.util import render_images, parse_video, markdown_to_html +from utils.util import render_images, render_products, parse_video, markdown_to_html class Post(models.Model): @@ -139,7 +139,8 @@ class Post(models.Model): created = self.pk is None if not created: md = render_images(self.body_markdown) - self.body_html = markdown_to_html(md) + prods = render_products(md) + self.body_html = markdown_to_html(prods) self.epilogue_html = markdown_to_html(self.epilogue_markdown) self.prologue_html = markdown_to_html(self.prologue_markdown) self.has_video = parse_video(self.body_html) |