Sha256: b7909e67147c16034b020d31de6d4b382b9b608f15d8c9ea550871cba29727ab
Contents?: true
Size: 235 Bytes
Versions: 3
Compression:
Stored size: 235 Bytes
Contents
class String # Converts the string using Markdown def markdown nanoc_require 'bluecloth' BlueCloth.new(self).to_html end end register_filter 'markdown', 'bluecloth' do |page, pages, config| page.content.markdown end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nanoc-1.6 | lib/nanoc/filters/markdown_filter.rb |
nanoc-1.6.1 | lib/nanoc/filters/markdown_filter.rb |
nanoc-1.6.2 | lib/nanoc/filters/markdown_filter.rb |