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
Instance Method Details
#cadmus_renderer_class ⇒ Object
120 121 122 |
# File 'lib/cadmus/markdown.rb', line 120 def cadmus_renderer_class Cadmus::Renderers::Markdown end |
#setup_renderer ⇒ Object
115 116 117 118 |
# File 'lib/cadmus/markdown.rb', line 115 def setup_renderer super renderer. = if respond_to?(:markdown_options) end |