new

new(markup = nil) Class Public methods Returns a new ToBs that is ready for hot backspace action!

accept_heading

accept_heading(heading) Instance Public methods Makes heading text bold.

annotate

annotate(tag) Instance Public methods Turns on or off special handling for convert_string

convert_special

convert_special(special) Instance Public methods Calls #convert_string on the result of #convert_special

convert_string

convert_string(string) Instance Public methods Adds bold or underline mixed with backspaces

init_tags

init_tags() Instance Public methods Sets a flag that is picked up by annotate to do the right thing in convert_string

new

new(options, markup = nil) Class Public methods Creates a new formatter that will output HTML

handle_special_HARD_BREAK

handle_special_HARD_BREAK(special) Instance Public methods special is a

handle_special_HYPERLINK

handle_special_HYPERLINK(special) Instance Public methods special is a potential link. The following schemes are handled: mailto: Inserted as-is. http: Links are checked to see if they reference an image. If so, that image gets inserted using an <img> tag. Otherwise a conventional <a href> is used. link: Reference to a local file relative to the output directory.

handle_special_RDOCLINK

handle_special_RDOCLINK(special) Instance Public methods special is an rdoc-schemed link that will be converted into a hyperlink. For the rdoc-ref scheme the named reference will be returned without creating a link. For the rdoc-label scheme the footnote and label prefixes are stripped when creating a link. All other contents will be linked verbatim.