Skip to content

Commit

Permalink
removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Junya Ogura committed Jun 19, 2009
1 parent 130cbf2 commit ba63a63
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
name 'Markdown Extra formatter'
author 'Junya Ogura'
description 'This provides Markdown Extra as a wiki format'
version '0.0.1'
version '0.0.2'

wiki_format_provider 'Markdown Extra', RedmineMarkdownExtraFormatter::WikiFormatter, RedmineMarkdownExtraFormatter::Helper
end
1 change: 0 additions & 1 deletion lib/redmine_markdown_extra_formatter/wiki_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def initialize(text)

def to_html(&block)
BlueFeather.parse(@text.gsub(/\[(.+)\]\((https?:\/\/.+)\)/, '[\1](/redirect/\2)'))
# BlueFeather.parse(@text).gsub(/href=(["'])(.+)(["'])/i, 'href=\1/redirect/\2\3')
rescue => e
return("<pre>problem parsing wiki text: #{e.message}\n"+
"original text: \n"+
Expand Down

0 comments on commit ba63a63

Please sign in to comment.