Sha256: 40ded4f7bbf4b333ad0c775a206b5fb71fc063cd7688955024981695bd20da47
Contents?: true
Size: 272 Bytes
Versions: 2
Compression:
Stored size: 272 Bytes
Contents
Jekyll::Hooks.register :posts, :pre_render do |post, payload| docExt = post.extname.tr('.', '') post.content.gsub!(/!\[(.*)\]\(([^\)]+)\)(?:{:([^}]+)})*/, '{% picture \2 \3 %}') post.content.gsub! 'path: /', 'path: ' #you can probably optimise this a bit end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-lenciel-theme-1.0.29 | plugins/img-tag-transform.rb |
jekyll-lenciel-theme-1.0.28 | plugins/img-tag-transform.rb |