[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 untrusted user: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
4 changed files with 5 additions and 7 deletions

View File

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

View File

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

View File

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

View File

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