[UI][NOTE][MARKDOWN] Add markdown support to the notes

This commit is contained in:
Angelo D. Moura 2021-01-03 23:17:06 +00:00 committed by Hugo Sales
parent 8cc0360298
commit 8a48236d2d
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
4 changed files with 5 additions and 7 deletions

View File

@ -143,8 +143,6 @@
padding: var(--small-size);
border-radius: 0 0 var(--unit-size) var(--unit-size);
width: 100%;
display: flex;
flex-wrap: wrap;
}
.note-attachments {
display: flex;

View File

@ -143,8 +143,6 @@
padding: var(--small-size);
border-radius: 0 0 var(--unit-size) var(--unit-size);
width: 100%;
display: flex;
flex-wrap: wrap;
}
.note-attachments {
display: flex;

View File

@ -143,8 +143,6 @@
padding: var(--small-size);
border-radius: 0 0 var(--unit-size) var(--unit-size);
width: 100%;
display: flex;
flex-wrap: wrap;
}
.note-attachments {
display: flex;

View File

@ -11,7 +11,11 @@
{% endif %}
</div>
<div class="note-content">
{{ note.getContent() }}
{% block markdown %}
{% apply markdown_to_html %}
{{ note.getContent() }}
{% endapply %}
{% endblock %}
<div class="note-other-content">
{% for other in get_note_other_content(note) %}
{% include '/'~ other.name ~ '/view.html.twig' with {'vars': other.vars} only %}