NAME

App::Basis::ConvertText2

SYNOPSIS

TO be used in conjuction with the ct2 script that is part of this distribution. Not really to be used on its own.

DESCRIPTION

Convert markdown text into other formats. Uses many different plugins together perform actions like pandoc code-blocks do.

Requires a number of extra programs to work,

See https://github.com/27escape/App-Basis-ConvertText2/blob/master/README.md for more information.

Todo

Consider adding plugins for http://blockdiag.com/en/index.html, gnuplot and gle http://glx.sourceforge.net/

Public methods

new

Create a new instance of a of a data formating object

Parameters passed in a HASH name - name of this formatting action - required cache_dir - place to store cache files - optional use_cache - decide if you want to use a cache or not template - HTML template to use, must contain %_CONTENTS_% replace - hashref of extra keywords to use as replaceable variables verbose - be verbose embed - embed images, do not create links to them

clean_cache

Remove all files from the cache

parse

parse the markup into HTML and return it, HTML is also stored internally

Parameter markdown text

save_to_file

save the created html to a named file

Parameters filename filename to store/convert stored HTML into prince flag to indicate that we should use prince to create PDF