Class: RevealCK::Markdown::SlideMarkdownTemplate

Inherits:
Tilt::Template
  • Object
show all
Defined in:
lib/reveal-ck/markdown/slide_markdown_template.rb

Overview

Public: This class allows SlideMarkdown to hook into Tilt 2.0. See github.com/rtomayko/tilt.

Instance Method Summary collapse

Instance Method Details

#evaluateObject



14
15
16
17
18
19
20
21
22
23
# File 'lib/reveal-ck/markdown/slide_markdown_template.rb', line 14

def evaluate(*)
  markdown = Redcarpet::Markdown.new(
                                     SlideMarkdown,
                                     fenced_code_blocks: true,
                                     tables: true,
                                     strikethrough: true,
                                     highlight: true
                                    )
  @output = markdown.render(data)
end

#prepareObject

Must be implemented by all subclasses of Tilt::Template



11
12
# File 'lib/reveal-ck/markdown/slide_markdown_template.rb', line 11

def prepare
end