Module MaRuKu::Out::HTML
In: lib/maruku/ext/div.rb
lib/maruku/ext/math/mathml_engines/blahtex.rb
lib/maruku/ext/math/mathml_engines/itex2mml.rb
lib/maruku/ext/math/mathml_engines/none.rb
lib/maruku/ext/math/mathml_engines/ritex.rb
lib/maruku/ext/math/to_html.rb
lib/maruku/output/to_html.rb
lib/maruku.rb

Functions for exporting to HTML.

Methods

Included Modules

REXML

Constants

PNG = Struct.new(:src,:depth,:height)
Xhtml10strict = "<?xml version='1.0' encoding='utf-8'?> <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>\n"
Xhtml11strict_mathml2 = '<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd" [ <!ENTITY mathml "http://www.w3.org/1998/Math/MathML"> ]> '
Xhtml11_mathml2_svg11 = '<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> '
METAS = %w{description keywords author revised}
HTML4Attributes = {}

Public Instance methods

Convert each child to html

returns "st","nd","rd" or "th" as appropriate

formats a nice date

Email address

Creates an xml Mathml document of self.math

Creates an xml Mathml document of self.math

nil if not applicable, else SPAN element

nil if not applicable, else string

Render as an HTML fragment (no head, just the content of BODY). (returns a string)

Definition lists ###

Render to a complete HTML document (returns a string)

Render to a complete HTML document (returns a REXML document tree)

FIXME: Ugly code

Render to an HTML fragment (returns a REXML document tree)

renders children as html and wraps into an element of given name

Sets ‘id’ if meta is set

[Validate]