Sha256: 6112f3813c10307467c2412e6464fa4e9b7fb96ae254927ef37233701853c0af
Contents?: true
Size: 520 Bytes
Versions: 5
Compression:
Stored size: 520 Bytes
Contents
require 'jekyll_plugin_support' require_relative 'jekyll_pre/version' module NoSelectTag # """\\{% noselect %} or \\{% noselect this all gets copied. # Also, space before the closing percent is signficant %}""" class NoSelectTag < JekyllSupport::JekyllTagNoArgParsing include JekyllPreVersion def render_impl text = @argument_string text = '$ ' if text.nil? || text.empty? "<span class='unselectable'>#{text}</span>" end JekyllPluginHelper.register(self, 'noselect') end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
jekyll_pre-1.3.1 | lib/noselect_tag.rb |
jekyll_pre-1.3.0 | lib/noselect_tag.rb |
jekyll_pre-1.2.4 | lib/noselect_tag.rb |
jekyll_pre-1.2.3 | lib/noselect_tag.rb |
jekyll_pre-1.2.2 | lib/noselect_tag.rb |