Sha256: b8ef98c5cc839571eefc00ecea25265ce0c8c4c4930f065d65710bc9c24f1383

Contents?: true

Size: 622 Bytes

Versions: 127

Compression:

Stored size: 622 Bytes

Contents

# encoding=utf-8
require 'cgi'
require 'polytexnic/postprocessors/html'
require 'polytexnic/postprocessors/latex'
require 'polytexnic/postprocessors/polytex'

module Polytexnic
  module Postprocessor
    include Html
    include Latex
    include Polytex

    def postprocess(format)
      case format
      when :html
        @html = xml_to_html(@xml)
      when :latex
        hyperrefs(@polytex)
        raw_source = replace_hashes(@polytex)
        @latex = highlight_source_code(raw_source)
      when :polytex
        remove_hypertarget
        fix_verbatim_bug
        write_polytex_code
      end
    end
  end
end

Version data entries

127 entries across 127 versions & 1 rubygems

Version Path
polytexnic-1.10.8 lib/polytexnic/postprocessor.rb
polytexnic-1.10.7 lib/polytexnic/postprocessor.rb
polytexnic-1.10.6 lib/polytexnic/postprocessor.rb
polytexnic-1.10.5 lib/polytexnic/postprocessor.rb
polytexnic-1.10.4 lib/polytexnic/postprocessor.rb
polytexnic-1.10.3 lib/polytexnic/postprocessor.rb
polytexnic-1.10.2 lib/polytexnic/postprocessor.rb
polytexnic-1.10.1 lib/polytexnic/postprocessor.rb
polytexnic-1.10.0 lib/polytexnic/postprocessor.rb
polytexnic-1.9.2 lib/polytexnic/postprocessor.rb
polytexnic-1.9.1 lib/polytexnic/postprocessor.rb
polytexnic-1.9.0 lib/polytexnic/postprocessor.rb
polytexnic-1.8.2 lib/polytexnic/postprocessor.rb
polytexnic-1.8.1 lib/polytexnic/postprocessor.rb
polytexnic-1.8.0 lib/polytexnic/postprocessor.rb
polytexnic-1.7.5 lib/polytexnic/postprocessor.rb
polytexnic-1.7.4 lib/polytexnic/postprocessor.rb
polytexnic-1.7.3 lib/polytexnic/postprocessor.rb
polytexnic-1.7.2 lib/polytexnic/postprocessor.rb
polytexnic-1.7.1 lib/polytexnic/postprocessor.rb