Sha256: 4196f1248bd779515f0fc552b6ea59b5bebc043eb46f1429566096f4f707b327

Contents?: true

Size: 588 Bytes

Versions: 17

Compression:

Stored size: 588 Bytes

Contents

Jekyll::Hooks.register :posts, :post_init do |item|
    item.content = item.content
        &.gsub(/^:::([a-z \-_]+)/, '<div class="\1" markdown="1">')
        &.gsub(/^:::/, '</div>')
end

Jekyll::Hooks.register :pages, :post_init do |item|
    item.content = item.content
        &.gsub(/^:::([a-z \-_]+)/, '<div class="\1" markdown="1">')
        &.gsub(/^:::/, '</div>')
end

Jekyll::Hooks.register :documents, :post_init do |item|
    item.content = item.content
        &.gsub(/^:::([a-z \-_]+)/, '<div class="\1" markdown="1">')
        &.gsub(/^:::/, '</div>')
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
fenton-jekyll-plugin-0.0.13 lib/fenton-jekyll-plugin/jb_jekyll_markdown.rb
fenton-jekyll-plugin-0.0.12 lib/fenton-jekyll-plugin/jb_jekyll_markdown.rb
fenton-jekyll-plugin-0.0.11 lib/fenton-jekyll-plugin/jb_jekyll_markdown.rb
fenton-jekyll-plugin-0.0.10 lib/fenton-jekyll-plugin/jb_jekyll_markdown.rb
fenton-jekyll-plugin-0.0.9 lib/fenton-jekyll-plugin/jb_jekyll_markdown.rb
fenton-jekyll-plugin-0.0.8 lib/fenton-jekyll-plugin/jb_jekyll_markdown.rb
fenton-jekyll-plugin-0.0.7 lib/fenton-jekyll-plugin/jb_jekyll_markdown.rb
fenton-jekyll-plugin-0.0.6 lib/fenton-jekyll-plugin/jb_jekyll_markdown.rb
fenton-jekyll-plugin-0.0.5 lib/fenton-jekyll-plugin/jb_jekyll_markdown.rb
fenton-jekyll-plugin-0.0.4 lib/fenton-jekyll-plugin/jb_jekyll_markdown.rb
fenton-jekyll-plugin-0.0.3 lib/fenton-jekyll-plugin/jb_jekyll_markdown.rb
fenton-jekyll-plugin-0.0.2 lib/fenton-jekyll-plugin/jb_jekyll_markdown.rb
fenton-jekyll-plugin-0.0.1 lib/fenton-jekyll-plugin/jb_jekyll_markdown.rb
fenton-jekyll-boilerplate-0.0.4 _plugins/markdown.rb
fenton-jekyll-boilerplate-0.0.3 _plugins/markdown.rb
fenton-jekyll-boilerplate-0.0.2 _plugins/markdown.rb
fenton-jekyll-boilerplate-0.0.1 _plugins/markdown.rb