Sha256: 95b317ea077afc1ab536cfcc534c592bbd9d75d497b1ff16affccd1594dd75be

Contents?: true

Size: 308 Bytes

Versions: 2

Compression:

Stored size: 308 Bytes

Contents

module Jekyll
  class RenderIntroBlock < Liquid::Tag

    def initialize(tag_name, text, tokens)
      super
      @text = text
    end

    require "kramdown"
    def render(context)
      "<p class='intro'>#{ @text }</p>"
    end

  end
end

Liquid::Template.register_tag('intro', Jekyll::RenderIntroBlock)

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
mpiwg-jekyll-tags-0.0.2 lib/mpiwg-jekyll-tags/tag.rb
MPIWG-Jekyll-Plugin-0.1.12 lib/MPIWG-Jekyll-Plugin/tag.rb