From e26949e8f6580ddd9e890613236c827d5652aacc Mon Sep 17 00:00:00 2001 From: bsag Date: Sun, 17 May 2009 14:13:52 +0100 Subject: [PATCH] Fix #896. Tidied styling of notes (attached to action and free-standing project notes) so that basic Textile markup shows up and looks attractive. You can now use *bold*, _italics_, ordered lists (#), unordered lists (*), and H1 (h1.) and H2 (h2.) headers can all be used, along with Textile links. --- app/views/notes/_notes.rhtml | 2 +- public/stylesheets/standard.css | 48 ++++++++++++++++++++++++--------- 2 files changed, 36 insertions(+), 14 deletions(-) diff --git a/app/views/notes/_notes.rhtml b/app/views/notes/_notes.rhtml index de9068b8..2bc12211 100644 --- a/app/views/notes/_notes.rhtml +++ b/app/views/notes/_notes.rhtml @@ -1,7 +1,7 @@ <% note = notes -%>

<%= link_to("Note #{note.id}", note_path(note), :title => "Show note #{note.id}" ) %>

-
+
<%= sanitize(markdown(auto_link(note.body))) %>