- line_parse
-
Performs substitutions on lines called by fragment_slurp, at least. Calls image_markup(), textile_process(), markdown_process().
Returns string.
Parses some special markup, specifically:
<textile></textile> - Text::Textile to HTML <markdown></markdown> - Text::Markdown::Discount to HTML <freeverse></freeverse> <retcon></retcon> <list></list> <image>filename.ext optional alt tag optional title text</image> ${variable} interpolation from the WRT object <perl>print "hello world";</perl> <include>path/to/file/from/project/root</include> - eval_perl
-
Evaluate embedded Perl in a string, replacing blocks enclosed with <perl> tags with whatever they return (well, evaluated in a scalar context). Returns the modified string.
Also handles simple ${variables}, replacing them from the keys to $self.
- include_process
-
Inline replace <include>filename</include> tags, replacing them with the contents of files.
- retrieve_include
-
Get the contents of an included file. This probably needs a great deal more thought than I am presently giving it.
- textile_process
-
Inline replace <textile> markup in a string.
- markdown_process
-
Inline replace <markdown> markup in a string.
- image_markup
-
Parse out an image tag and return the appropriate html.
Relies on image_size from App::WRT::Image.
1;