Sha256: 0cb0d6e203d58d5ac495a2665f2a8a09e14a1f3945f51dbb68a5e7e9d95654a3
Contents?: true
Size: 543 Bytes
Versions: 3
Compression:
Stored size: 543 Bytes
Contents
require 'jekyll_plugin_support' require_relative 'jekyll_pre/version' module JekyllPreModule # """\\{% 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 ::JekyllSupport::JekyllPluginHelper.register(self, 'noselect') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jekyll_pre-1.4.8 | lib/noselect_tag.rb |
jekyll_pre-1.4.7 | lib/noselect_tag.rb |
jekyll_pre-1.4.6 | lib/noselect_tag.rb |