Improved quotes

This commit is contained in:
2013-01-20 15:24:14 -05:00
parent 44402b2e7f
commit e92fb33275
5 changed files with 36 additions and 13 deletions

View File

@@ -4,6 +4,16 @@ class TopicsController < ApplicationController
def show
@topic.hit! if @topic
@my_blockquote = {
'Quote' => [
/\[quote(:.*)?=(.*?)\](.*?)\[\/quote\1?\]/mi,
'<blockquote><cite>\2</cite><span class="a">&#8220;</span>\3<span class="b">&#8221;</span></blockquote>',
'Quote with citation',
'[quote=mike]please quote me[/quote]',
:quote
],
}
end
def create