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