Type:
Module
Constants:
MARKUP_FORMAT
:
{
'markdown' => RDoc::Markdown,
'rdoc' => RDoc::Markup,
'rd' => RDoc::RD,
'tomdoc' => RDoc::TomDoc,
}
Maps markup formats to classes that can parse them. If the format is unknown, ârdocâ format is used.
TO_HTML_CHARACTERS
:
Hash.new do |h, encoding|
h[encoding] = {
:close_dquote => encode_fallback('â', encoding, '"'),
:close_squote => encode_fallback('â', encoding, '\''),
:copyright => encode_fallback('©', encoding, '(c)'),
:ellipsis => encode_fallback('â¦', encoding, '...'),
:em_dash => encode_fallback('â', encoding, '---'),
:en_dash => encode_fallback('â', encoding, '--'),
:open_dquote => encode_fallback('â', encoding, '"'),
:open_squote => encode_fallback('â', encoding, '\''),
:trademark => encode_fallback('®', encoding, '(r)'),
}
end if Object.const_defined? :Encoding
Maps an encoding to a Hash of characters properly transcoded for that encoding.
See also encode_fallback.
Methods for manipulating comment text