[Solar-talk] Solar_Markdown: 'Paragraph' plugin dependency

Rodrigo Moraes rodrigo.moraes at gmail.com
Sun May 6 14:36:41 PDT 2007


Hi,
This is just a comment about Solar_Markdown plugins. I have an unusual
use for them - parse special tags in user templates, and for this I
don't need (at least not now) the default plugins.

I was expecting that the plugins commented as 'pre-processing on the
source as a whole' ('Prefilter' and 'Plugin_StripLinkDefs') would be
the only required ones, but actually only the 'Paragraph' is required
to process, for example, my 'Widget' plugin [1]. It's the only
dependency, and as I don't really need paragraph conversion in the
parsed text, I created a simplified version of it, without the
paragraphs inclusion, and it works fine.

I guess the 'Paragraph' plugin does a pre-parsing for the regexp that
will come, calling _processSpans() and _toHtmlToken() so the text will
be ready to be parsed.

Anyway, just a comment.

rodrigo

[1] http://dev.tipos.org/browser/trunk/Tipos/Markdown/Plugin/Widget.php


More information about the solar-talk mailing list