Sha256: c55c97d4b043cea6f80a6517c101d9e8b6ac52cf62467911bdfd7ffefdcb7dec
Contents?: true
Size: 735 Bytes
Versions: 2
Compression:
Stored size: 735 Bytes
Contents
module Octopress module Tags module PullQuote module Utils def self.parse_content(content, context) path = context.environments.first['page']['path'] ext = File.extname(path[1..-1])[1..-1] site = context.registers[:site] mdext = site.config['markdown_ext'] txext = site.config['textile_ext'] if mdext.include? ext site.getConverterImpl(Jekyll::Converters::Markdown).convert(content) elsif txext.include? ext site.getConverterImpl(Jekyll::Converters::Textile).convert(content) else "<p>" + content.strip.gsub(/\n\n/, "<p>\n\n</p>") + "</p>" end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octopress-pullquote-tag-1.0.1 | lib/octopress-pullquote-tag/utils.rb |
octopress-pullquote-tag-1.0.0 | lib/octopress-pullquote-tag/utils.rb |