Module: Kitabu::Markdown

Defined in:
lib/kitabu/markdown.rb

Defined Under Namespace

Classes: Renderer

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.default_markdown_optionsObject

Set the default markdown options.



50
51
52
# File 'lib/kitabu/markdown.rb', line 50

def default_markdown_options
  @default_markdown_options
end

.default_renderer_optionsObject

Set the default markdown renderer’s options.



47
48
49
# File 'lib/kitabu/markdown.rb', line 47

def default_renderer_options
  @default_renderer_options
end

.processorObject

Set markdown renderer



44
45
46
# File 'lib/kitabu/markdown.rb', line 44

def processor
  @processor
end

Class Method Details

.render(text) ⇒ Object



71
72
73
# File 'lib/kitabu/markdown.rb', line 71

def self.render(text)
  processor.render(text)
end