NAME
Text::Amuse::InlineElement - Helper for Text::Amuse
METHODS
Everything here is pretty much internal only, underdocumented and subject to change.
new(%args)
Constructor. Accepts the following named arguments (which are also accessors)
- type
-
The element type
- string
-
The raw string
- last_position
-
The offset of the last character in the parsed string
- tag
-
The name of the tag
- fmt
-
ltx
orhtml
- lang
-
The language code.
- append($element)
-
Append the provided string to the self's one and update the last_position.
- stringify
-
Main method to get the desired output from the element.
- escape_all_html($string)
-
HTML escape
- escape_tex
-
Escape the string for LaTeX output
- is_latex
-
Shortcut to check if the format is latex
- is_html
-
Shortcut to check if the format is html
- unroll
-
Convert the close_inline open_inline symbols (= and *) into elements an open/close type and the tag properly set.
- verbatim_string($string)
-
Escape the string according to the element format