Replace django-docutils by own template filter
Problem with django-docutils (and thus abandoned here): When calling the filter, the app used ``return parts['fragments']`` which cut the first headlines from the text input. The correct call is ``return parts['html_body']``, as implemented in the new self-made filter.
Showing
- SciPost_v1/settings/base.py 0 additions, 1 deletionSciPost_v1/settings/base.py
- forums/models.py 2 additions, 3 deletionsforums/models.py
- forums/templates/forums/post_card.html 1 addition, 1 deletionforums/templates/forums/post_card.html
- requirements.txt 1 addition, 2 deletionsrequirements.txt
- scipost/templatetags/restructuredtext.py 18 additions, 0 deletionsscipost/templatetags/restructuredtext.py
Loading
Please register or sign in to comment