Add support for inline images

This commit is contained in:
Thomas Sileo
2019-11-01 16:05:48 +01:00
parent 00b43fa935
commit 6a40e7d7f2
3 changed files with 40 additions and 4 deletions

View File

@@ -137,7 +137,7 @@
{% if obj | has_type(['Article', 'Page']) %}
{{ obj.name }} <a href="{{ obj | url_or_id | get_url }}">{{ obj | url_or_id | get_url }}</a>
{% elif obj | has_type('Question') %}
{{ obj.content | clean | replace_custom_emojis(obj) | code_highlight | safe }}
{{ obj.content | clean | update_inline_imgs | replace_custom_emojis(obj) | code_highlight | safe }}
<ul style="list-style:none;padding:0;">
@@ -206,7 +206,7 @@
{% else %}
{{ obj.content | clean | replace_custom_emojis(obj) | code_highlight | safe }}
{{ obj.content | clean | update_inline_imgs | replace_custom_emojis(obj) | code_highlight | safe }}
{% endif %}
{% if obj | has_place %}