Skip to content

Commit

Permalink
markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Apr 14, 2010
1 parent f72f043 commit 2e30f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/content_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def self.markdown_safe_filter(code,options={}) #:nodoc:
end

def self.comment_filter(code,options={}) #:nodoc:
safe_link(RedCloth.new(code,[:lite_mode, :filter_html]).to_html)
safe_link(RedCloth.new(code,[:lite_mode, :filter_html]).to_html).gsub(/^([ ]+)/) { " " * $1.length }
end

def self.safe_link(code)
Expand Down

0 comments on commit 2e30f5b

Please sign in to comment.