Get content based on original HTML

It can't be done post anchoring, else the '#' end up in the ToC
This commit is contained in:
Jake Howard 2022-07-04 19:00:20 +01:00
parent 65044361a6
commit 88b6f4b61b
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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: