Class Orgmode::HtmlOutputBuffer
In: lib/org-ruby/html_output_buffer.rb
Parent: OutputBuffer

Methods

Constants

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__ = { "'" => '&#39;', '&' => '&amp;', '"' => '&quot;', '<' => '&lt;', '>' => '&gt;', }   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

Attributes

options  [R] 

Public Class methods

Public Instance methods

We are leaving a mode. Close any tags that were opened when entering this mode.

Test if we‘re in an output mode in which whitespace is significant.

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.

[Validate]