[UI][NOTE][MARKDOWN] Add markdown support to the notes
This commit is contained in:
parent
8cc0360298
commit
8a48236d2d
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user