Class: RevealCK::Markdown::PreProcessorTransforms

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

Overview

This class gives special meaning to legitimate markdown within slides. This “slides markdown” is transformed into symbols that are not markdown. Later on these will be transformed into HTML meanings.

For example,

  • — becomes <div>DIVIDER</div>

  • “‘notes becomes <div>NOTES_OPEN</div>

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(doc) ⇒ PreProcessorTransforms

Returns a new instance of PreProcessorTransforms.



15
16
17
# File 'lib/reveal-ck/markdown/pre_processor_transforms.rb', line 15

def initialize(doc)
  @doc = doc
end

Instance Attribute Details

#docObject (readonly)

Returns the value of attribute doc.



14
15
16
# File 'lib/reveal-ck/markdown/pre_processor_transforms.rb', line 14

def doc
  @doc
end

Instance Method Details

#processObject



19
20
21
22
23
# File 'lib/reveal-ck/markdown/pre_processor_transforms.rb', line 19

def process
  transform_slide_notes_to_notes_symbols
  transform_slide_dividers_to_divider_symbols
  transform_slide_verticals_to_vertical_symbols
end