Skip to content

Commit

Permalink
Keep absolute links (e.g. for the newsletter)
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed Feb 11, 2012
1 parent bfbe66d commit ee41a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lfmarkdown.rb
Expand Up @@ -65,7 +65,7 @@ def fix_heading_levels(str)
end

def fix_internal_links(str)
str.gsub!(/(href|src)="https?:\/\/#{MY_DOMAIN}\//) { |_| "#{$1}=\"/" }
str.gsub!(/(href|src)="https:\/\/#{MY_DOMAIN}\//) { |_| "#{$1}=\"http://#{MY_DOMAIN}/" }
str
end

Expand Down

0 comments on commit ee41a35

Please sign in to comment.