Sha256: 2bc9b22e9ca92e8d093ea5aab48a0e0c0fabcf50cfe78e8ebfa1600de043013f

Contents?: true

Size: 616 Bytes

Versions: 11

Compression:

Stored size: 616 Bytes

Contents

module RevealCK
  module Markdown
    # This class embodies the preprocessing that starts with a
    # traditional Markdown document and turns it into something that
    # can later "become" reveal.js slides.
    class PreProcessor
      attr_reader :doc
      def initialize(doc)
        @doc = doc
      end

      def process
        strip_whitespace
        PreProcessorForEmoji.new(doc).process
        PreProcessorForDividers.new(doc).process
        PreProcessorTransforms.new(doc).process
        doc.lstrip
      end

      private

      def strip_whitespace
        doc.strip!
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
reveal-ck-4.0.0 lib/reveal-ck/markdown/pre_processor.rb
reveal-ck-3.9.2 lib/reveal-ck/markdown/pre_processor.rb
reveal-ck-3.9.1 lib/reveal-ck/markdown/pre_processor.rb
reveal-ck-3.9.0 lib/reveal-ck/markdown/pre_processor.rb
reveal-ck-3.8.1 lib/reveal-ck/markdown/pre_processor.rb
reveal-ck-3.8.0 lib/reveal-ck/markdown/pre_processor.rb
reveal-ck-3.7.0 lib/reveal-ck/markdown/pre_processor.rb
reveal-ck-3.6.0 lib/reveal-ck/markdown/pre_processor.rb
reveal-ck-3.5.1 lib/reveal-ck/markdown/pre_processor.rb
reveal-ck-3.5.0 lib/reveal-ck/markdown/pre_processor.rb
reveal-ck-3.4.0 lib/reveal-ck/markdown/pre_processor.rb