Make some markdown lazy load image

This commit is contained in:
cuom1999 2022-11-07 16:11:35 -06:00
parent b2950cfcdc
commit fddde73583
7 changed files with 7 additions and 7 deletions

View file

@ -54,7 +54,7 @@
{% endif %}
<div class='blog-description content-description'>
{% cache 86400 'problem_html' problem.id MATH_ENGINE LANGUAGE_CODE %}
{{ problem.description|markdown|reference|str|safe }}
{{ problem.description|markdown(lazy_load=True)|reference|str|safe }}
{% endcache %}
{% if problem.pdf_description %}
<embed src="{{url('problem_pdf_description', problem.code)}}" width="100%" height="500" type="application/pdf" style="margin-top: 0.5em">