Sha256: 1b04964f9ecfaacced3812f9cc9f47af76fdfe71be5659d43396e9f7cf5d6d3a
Contents?: true
Size: 415 Bytes
Versions: 3
Compression:
Stored size: 415 Bytes
Contents
# -*- coding: utf-8 -*- class MarkdownEngine def initialize require 'bluecloth' end def to_html(src) BlueCloth.new(src).to_html end end class WikiEngine def initialize require 'wikitext' end def to_html(src) Wikitext::Parser.new.parse(src) end end class TextileEngine def initialize require 'RedCloth' end def to_html(src) RedCloth.new(src).to_html end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
markd-0.2.2 | lib/markd/engines.rb |
markd-0.2.1 | lib/markd/engines.rb |
markd-0.2.0 | lib/markd/engines.rb |