| Class | Orgmode::HtmlOutputBuffer |
| In: |
lib/org-ruby/html_output_buffer.rb
|
| Parent: | OutputBuffer |
| HtmlBlockTag | = | { :paragraph => "p", :ordered_list => "ol", :unordered_list => "ul", :list_item => "li", :definition_list => "dl", :definition_term => "dt", :definition_descr => "dd", :table => "table", :table_row => "tr", :quote => "blockquote", :example => "pre", :src => "pre", :inline_example => "pre", :center => "div", :heading1 => "h1", :heading2 => "h2", :heading3 => "h3", :heading4 => "h4", :heading5 => "h5", :heading6 => "h6", :title => "h1" | ||
| Tags | = | { "*" => { :open => "b", :close => "b" }, "/" => { :open => "i", :close => "i" }, "_" => { :open => "span style=\"text-decoration:underline;\"", :close => "span" }, "=" => { :open => "code", :close => "code" }, "~" => { :open => "code", :close => "code" }, "+" => { :open => "del", :close => "del" } | ||
| TABLE_FOR_ESCAPE_HTML__ | = | { "'" => ''', '&' => '&', '"' => '"', '<' => '<', '>' => '>', } |
The CGI::escapeHTML function backported from the Ruby standard library as
of commit fd2fc885b43283aa3d76820b2dfa9de19a77012f
Implementation of the cgi module can change among Ruby versions so stabilizing on a single one here to avoid surprises. github.com/ruby/ruby/blob/trunk/lib/cgi/util.rb The set of special characters and their escaped values |
| options | [R] |
Output buffer is entering a new mode. Use this opportunity to write out one of the block tags in the HtmlBlockTag constant to put this information in the HTML stream.