From 88b6f4b61be7f0145e7020969fa8cc33eaae2b3e Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 4 Jul 2022 19:00:20 +0100 Subject: [PATCH] Get content based on original HTML It can't be done post anchoring, else the '#' end up in the ToC --- website/common/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/common/models.py b/website/common/models.py index a4ec578..d9ffb95 100644 --- a/website/common/models.py +++ b/website/common/models.py @@ -75,7 +75,7 @@ class BaseContentMixin(models.Model): @cached_property def content_html(self) -> str: - return get_content_html(self.body_html) + return get_content_html(str(self.body)) @cached_property def plain_text(self) -> str: