Code highlighting
This commit is contained in:
@@ -77,7 +77,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) | safe }}
|
||||
{{ obj.content | clean | replace_custom_emojis(obj) | code_highlight | safe }}
|
||||
|
||||
|
||||
<ul style="list-style:none;padding:0;">
|
||||
@@ -146,7 +146,7 @@
|
||||
|
||||
|
||||
{% else %}
|
||||
{{ obj.content | clean | replace_custom_emojis(obj) | safe }}
|
||||
{{ obj.content | clean | replace_custom_emojis(obj) | code_highlight | safe }}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user