Sha256: 46b3987f20d3ed25d9975b338c14b58d70d885141d85e96c6912074d29fec5b4
Contents?: true
Size: 671 Bytes
Versions: 13
Compression:
Stored size: 671 Bytes
Contents
require 'asciidoctor' require 'asciidoctor/extensions' module Asciidoctor::LaTeX # THIS CLASS IS NO LONGER USED # See 'inject_html.rb' # 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
13 entries across 13 versions & 1 rubygems