class Plezi::Base::RenderMarkDown::NewPageLinksMDRenderer
A custom render engine that makes sure links to foriegn sites open in a new window/tab.
Public Instance Methods
link(link, title, content)
click to toggle source
review's the link and renders the Html
# File lib/plezi/render/markdown.rb, line 18 def link(link, title, content) "<a href=\"#{link}\"#{" target='_blank'" if link =~ /^http[s]?\:\/\//}#{" title=\"#{title}\"" if title}>#{content}</a>" end