Class: RevealCK::Markdown::PostProcessor
- Inherits:
-
Object
- Object
- RevealCK::Markdown::PostProcessor
- Defined in:
- lib/reveal-ck/markdown/post_processor.rb
Overview
This class embodies the preprocessing that starts with an HTML document generated via Markdown and results in HTML that’s suitable for reveal.js slides.
Instance Attribute Summary collapse
-
#doc ⇒ Object
readonly
Returns the value of attribute doc.
Instance Method Summary collapse
-
#initialize(doc) ⇒ PostProcessor
constructor
A new instance of PostProcessor.
- #process ⇒ Object
Constructor Details
#initialize(doc) ⇒ PostProcessor
Returns a new instance of PostProcessor.
8 9 10 |
# File 'lib/reveal-ck/markdown/post_processor.rb', line 8 def initialize(doc) @doc = doc end |
Instance Attribute Details
#doc ⇒ Object (readonly)
Returns the value of attribute doc.
7 8 9 |
# File 'lib/reveal-ck/markdown/post_processor.rb', line 7 def doc @doc end |
Instance Method Details
#process ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/reveal-ck/markdown/post_processor.rb', line 12 def process strip_whitespace unprotect_emojis handle_start handle_end transform_symbols_to_sections end |