Class: WriteDown::Converter::Org

Inherits:
Base
  • Object
show all
Defined in:
lib/write_down/converter/org.rb

Overview

基类, 定义了一些接口

Instance Method Summary collapse

Constructor Details

#initialize(model) ⇒ Org

Returns a new instance of Org.



8
9
10
# File 'lib/write_down/converter/org.rb', line 8

def initialize(model)
  @content = model.content
end

Instance Method Details

#renderObject



12
13
14
# File 'lib/write_down/converter/org.rb', line 12

def render
  PandocRuby.convert(@content, { f: :org, to: :html5}, 'no-highlight')
end