From 0fbc18ec9e6c19f09e8953166323d8e9777e918c Mon Sep 17 00:00:00 2001 From: yafeilee Date: Tue, 1 Apr 2014 18:15:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E7=AB=A0=E5=86=85=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=B7=BB=E5=8A=A0=20=5Fblank?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/markdown.rb | 4 ++++ 1 file changed, 4 insertions(+) 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