From ad162d74db6718b2ba7dd1ab2e1f21847a7c7744 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 6 Jul 2010 20:16:10 -0500 Subject: Format all news items using markdown Implements FS#13741. A preview function is also added so working with news items is easier to make sure you get the formatting right. This will result in some older news items looking a bit weird if they didn't put linebreaks in all the right places, we can fix a few of these as we notice them. Signed-off-by: Dan McGee --- templates/news/view.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'templates/news/view.html') diff --git a/templates/news/view.html b/templates/news/view.html index 1b82bc08..64c510e3 100644 --- a/templates/news/view.html +++ b/templates/news/view.html @@ -1,8 +1,9 @@ {% extends "base.html" %} +{% load markup %} {% block title %}Arch Linux - News: {{ news.title }}{% endblock %} {% block content %} -
+

News: {{ news.title }}

@@ -17,7 +18,7 @@

News: {{ news.title }}

- {{ news.content|safe|linebreaks }} +
{{ news.content|markdown }}
{% endblock %} -- cgit v1.2.3-54-g00ecf