Sha256: 431251d82526c46c523cbad58d9bd0f38d66b585693c765fefdd060dffabd3b2
Contents?: true
Size: 327 Bytes
Versions: 3
Compression:
Stored size: 327 Bytes
Contents
require 'pandoc-ruby' module WriteDown module Converter # 基类, 定义了一些接口 class Markdown < Base def initialize(model) @content = model.content end def render PandocRuby.convert(@content, { f: :markdown, to: :html5}, 'no-highlight').to_s end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
write_down-0.2.2 | lib/write_down/converter/markdown.rb |
write_down-0.2.1 | lib/write_down/converter/markdown.rb |
write_down-0.2.0 | lib/write_down/converter/markdown.rb |