enable markdown syntax in custom_notes field

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2023-10-02 15:40:50 +02:00
parent a808a3f782
commit e8ed43056c
9 changed files with 511 additions and 39 deletions

View File

@@ -136,12 +136,12 @@
</ul>
</div>
{% if userinfo.custom_notes is not empty and userinfo.custom_notes_show == 1 %}
{% if userinfo.custom_notes|markdown is not empty and userinfo.custom_notes_show == 1 %}
<div class="card mb-3">
<ul class="list-group list-group-flush">
<li class="list-group-item list-group-item-info d-flex justify-content-between align-items-start">
<div class="ms-2 me-auto">
{{ userinfo.custom_notes|nl2br|raw }}
{{ userinfo.custom_notes|markdown|raw }}
</div>
</li>
</ul>
@@ -263,10 +263,10 @@
</div>
</li>
{% endif %}
{% if userinfo.custom_notes is not empty and userinfo.custom_notes_show == 1 %}
{% if userinfo.custom_notes|markdown is not empty and userinfo.custom_notes_show == 1 %}
<li class="list-group-item list-group-item-info d-flex justify-content-between align-items-start">
<div class="ms-2 me-auto">
{{ userinfo.custom_notes|nl2br|raw }}
{{ userinfo.custom_notes|markdown|raw }}
</div>
</li>
{% endif %}