diff --git a/lib/markdown.rb b/lib/markdown.rb index 791ba28..f96758a 100755 --- a/lib/markdown.rb +++ b/lib/markdown.rb @@ -3,4 +3,8 @@ require 'rouge/plugins/redcarpet' class CodeHTML < Redcarpet::Render::HTML include Rouge::Plugins::Redcarpet + + def initialize(extensions = {}) + super extensions.merge(link_attributes: { target: "_blank" }) + end end