Module: Polytexnic::Postprocessor
- Included in:
- Pipeline
- Defined in:
- lib/polytexnic/postprocessor.rb,
lib/polytexnic/postprocessors/html.rb,
lib/polytexnic/postprocessors/latex.rb,
lib/polytexnic/postprocessors/polytex.rb
Defined Under Namespace
Instance Method Summary collapse
Methods included from Polytex
#escape_hack, #fix_verbatim_bug, #remove_hypertarget, #write_polytex_code
Methods included from Latex
#extra_escape, #replace_hashes
Methods included from Html
Instance Method Details
#postprocess(format) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/polytexnic/postprocessor.rb', line 13 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 |