From a302749d0058f12a44e57e4436c9d74014ef22ac Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Sat, 20 Mar 2021 22:34:59 +0100 Subject: [PATCH] install php markdown to html, and test change in template --- .../Resources/views/Person/view.html.twig | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Person/view.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Person/view.html.twig index 78e6ed41c..e3d6f233a 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Person/view.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Person/view.html.twig @@ -45,11 +45,24 @@ This view should receive those arguments:

{{ 'Memo'|trans }}

- -

-

{{ person.memo|nl2br }}
-

+ + {#

{{ person.memo|nl2br }}

#} +
+
+ {% apply markdown_to_html %} + {{ person.memo }} + {% endapply %}
+ {% apply markdown_to_html %} +## Marc est down + +**michel** _ça va_ + +> une citation + +Sit amet nisl ~~purus~~ in mollis. + {% endapply %} +
{% endif %}