Class: RevealCK::Markdown::PreProcessorTransforms
- Inherits:
-
Object
- Object
- RevealCK::Markdown::PreProcessorTransforms
- 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
-
#doc ⇒ Object
readonly
Returns the value of attribute doc.
Instance Method Summary collapse
-
#initialize(doc) ⇒ PreProcessorTransforms
constructor
A new instance of PreProcessorTransforms.
- #process ⇒ Object
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
#doc ⇒ Object (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
#process ⇒ Object
19 20 21 22 23 |
# File 'lib/reveal-ck/markdown/pre_processor_transforms.rb', line 19 def process end |