Sha256: 14c6907b1c9645711b27a456f60b7b6109f865265c8e44d667408d9b547c08c7

Contents?: true

Size: 646 Bytes

Versions: 3

Compression:

Stored size: 646 Bytes

Contents

require 'asciidoctor'
require 'asciidoctor/extensions'

module Asciidoctor::LaTeX

  # THIS CLASS IS NO LONGER USED
  # Prepend lines to a document

  class ClickStyleInsert < Asciidoctor::Extensions::Preprocessor

    def putline line
      @@line_array += [line, ""]
    end

    def process document, reader

      warn "Entering ClickStyleInsert".magenta if $VERBOSE

      @@line_array = []

      return reader if reader.eof?

      putline '++++'
      putline '<style>'
      putline '.click .title { color: blue; }'
      putline '</style>'
      putline '++++'

      reader.unshift_lines @@line_array
      reader
    end

  end


end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
asciidoctor-latex-1.5.0.3.dev lib/asciidoctor/latex/prepend_processor.rb
asciidoctor-latex-1.5.0.2.dev lib/asciidoctor/latex/prepend_processor.rb
asciidoctor-latex-1.5.0.1.dev lib/asciidoctor/latex/prepend_processor.rb