On Tue, 28 Jan 2014 22:50:59 -0700 Sherwood Botsford <sgbotsf...@gmail.com> wrote:
> I think so. I've got Template::Plugin::MultiMarkdown installed and I > call it in my templates > > [% USE String %] > [% USE MultiMarkdown %] > > in header.inc > > Then > > [% FILTER multimarkdown %] > > just before the mmd part of the template. > > The new version of mmd lives in /usr/local/bin and reports version as > > ==> multimarkdown -v > peg-multimarkdown version 3.6 > portions Copyright (c) 2010-2012 Fletcher T. Penney. > portions Copyright (c) 2011 Daniel Jalkut, MIT licensed. > original Copyright (c) 2008-2009 John MacFarlane. License GPLv2+ or > MIT. This is free software: you are free to change and redistribute > it. There is NO WARRANTY, to the extent permitted by law. I'd like to point out that the Template::Plugin::MultiMarkdown module uses Text::MultiMarkdown, which doesn't use the multimarkdown program at all. It's implemented as a standalone module, though according to its man page[1] the authors aim to emulate the original, and they use the same tests. [1] http://search.cpan.org/~bobtfish/Text-MultiMarkdown-1.000034/lib/Text/MultiMarkdown.pm#THIS_DISTRIBUTION > On 24 January 2014 17:30, Richard Thomas <r...@mac.com> wrote: > > > > > On 25 Jan 2014, at 9:06 am, Sherwood Botsford <sgbotsf...@gmail.com> > > wrote: > > > > > > > > For years I've used an older version of multimarkdown. Now it is > > > no > > longer a perl program but a binary. > > > > > > I am not much of a programmer, and my limited programming is > > > procedural > > and not object oriented. > > > > > > I build my website with ttree and simple scripts. > > > > > > Would someone point me to a simple explanation of what I go > > > through to > > use an external program as a filter, and which files I need to > > edit. I've found an example of one calling an external perl > > program, but it wasn't clear to me if the modifcations were made in > > the template, in ttree or in some other file. > > > > > > Thanks! > > > > > > > Hi Sherwood, > > > > Are you using a plug-in to handle the MultiMarkdown parsing, or > > doing something else? > > > > I use [Template::Plugin::MultiMarkdown]( > > https://metacpan.org/pod/Template::Plugin::MultiMarkdown), which > > supports the XS version of MM - in fact it uses it by default. > > > > And you use it like this in your template(s): > > > > [% USE MultiMarkdown %] > > > > ... > > [% FILTER multimarkdown %] > > > > ### My Markdown. > > > > Here's my **MultiMarkdown** text. > > > > [% END %] > > > > ... > > > > Hope that's helpful. > > > > cheers > > RET > > _______________________________________________ > > templates mailing list > > templates@template-toolkit.org > > http://mail.template-toolkit.org/mailman/listinfo/templates > > -- C. Chad Wallace, B.Sc. The Lodging Company http://www.lodgingcompany.com/ OpenPGP Public Key ID: 0x262208A0 _______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates