Module: Cadmus::MarkdownRenderable

Includes:
Renderable
Defined in:
lib/cadmus/markdown.rb

Overview

An alternative to Cadmus::Renderable that will use Cadmus::Renderers::Markdown as the renderer class. Additionally, it will set the renderer's +markdown_options+ to the return value of the +markdown_options+ method, if that method is defined.

Instance Method Summary collapse

Methods included from Renderable

#cadmus_renderer

Instance Method Details

#cadmus_renderer_classObject



120
121
122
# File 'lib/cadmus/markdown.rb', line 120

def cadmus_renderer_class
  Cadmus::Renderers::Markdown
end

#setup_rendererObject



115
116
117
118
# File 'lib/cadmus/markdown.rb', line 115

def setup_renderer
  super
  renderer.markdown_options = markdown_options if respond_to?(:markdown_options)
end