From 620c9a02bba75363c60d71165b76635785eef187 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 21 Oct 2020 01:08:03 +0200 Subject: [PATCH] News: Render as markdown --- resources/views/pages/news/edit.twig | 2 +- resources/views/pages/news/overview.twig | 2 +- src/Renderer/Twig/Extensions/Markdown.php | 10 ++++++++-- .../Renderer/Twig/Extensions/MarkdownTest.php | 19 +++++++++++++++++++ 4 files changed, 29 insertions(+), 4 deletions(-) diff --git a/resources/views/pages/news/edit.twig b/resources/views/pages/news/edit.twig index 5a51d57c..1c74ec33 100644 --- a/resources/views/pages/news/edit.twig +++ b/resources/views/pages/news/edit.twig @@ -73,7 +73,7 @@
- {{ news.text|raw|nl2br }} + {{ news.text|raw|markdown(false) }}
diff --git a/resources/views/pages/news/overview.twig b/resources/views/pages/news/overview.twig index e30cc192..733f8b92 100644 --- a/resources/views/pages/news/overview.twig +++ b/resources/views/pages/news/overview.twig @@ -61,7 +61,7 @@ {% endif %}
- {{ news.text|raw|nl2br }} + {{ news.text|raw|markdown(false) }}