I have an alpha version of Text::MultiMarkdown::XS (version 0.001_03) on github: https://github.com/fordmason/Text-MultiMarkdown-XS and just uploaded to CPAN, and also a new version of Template::Plugin::MultiMarkdown uploaded to CPAN that makes use of the XS module if it is installed.

You can specify the version of the Text::MMD implementation to use for a filter with

    [% USE MultiMarkdown %]
    [% FILTER multimarkdown(implementation = 'XS') %]   # or 'PP'

The XS module seems to be about 100 times faster than the PP module, although for small Markdown fragments you probably won't see any significant difference.

At the moment the options differ between the XS and PP modules, but I shall iron that out (in most cases you won't want to specify any options). Also the options are currently not recognised on the USE statement - the plugin ought to merge the options, and I will get that sorted next.

As always, feedback is welcome

Andrew


On 10/06/13 21:52, Andrew Ford wrote:
Is anyone using Template::Plugin::MultiMarkdown? I ask because I picked up the code after not having touched it in years, and realized that the documentation is woefully inadequate. The module is just a thin wrapper over Text::MulitMarkdown, which takes quite a few options. The plugin will accept those options and pass them down to the lower level. Is anyone using such features?

At the same time I have put together a wrapper around Fletcher Penny's multimarkdown v4, which has been rewritten in C (based on work by John McFarlane) and is an order of magnitude faster than the Perl version. I am contemplating releasing the wrapper as a CPAN module (Text::MultiMarkdownXS) and basing the Template Toolkit plugin on that.

I would be interested to know if anyone has any strong feelings about the behaviour of the plugin.

In any case I intend putting out a new version of the MMD plugin shortly with more complete documentation.

Thanks
Andrew


_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________


--
Andrew Ford
South Wing Compton House, Compton Green,
Redmarley, Gloucestershire, GL19 3JB, UK
Tel:    +44 1531 829900
Mobile: +44 7785 258278
Email:  [email protected]


_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to