ikiwiki/IkiWiki
Joey Hess 73253d6925 template: Preprocess parameters before htmlizing.
Consider a template like:

[[!template type=note text="""
[[!inline pages="*foo*"]]
"""]]

The text parameter is htmlized before being passed into the template (in
case the template wraps it in a <span> that prevents markdown from
htmlizing it later).

But, when markdown sees "*foo*", it turns that into <em>foo</em>.
Later, when preprocessing the inline directive, that leads to suprising
results.

To fix this, I made template parameters be preprocessed (and filtered)
before being htmlized.

Note that I left in the preprocessing (and filtering) of the template
output at the end. That's still relevant when the template itself contains
preprocessor directives.
2010-01-26 22:33:46 -05:00
..
Plugin template: Preprocess parameters before htmlizing. 2010-01-26 22:33:46 -05:00
Setup cvs: Add missing bit to Automator. 2009-12-02 17:22:42 -05:00
CGI.pm brace style 2010-01-18 12:33:25 -05:00
Receive.pm Merge branch 'master' into cvs 2009-09-10 16:18:23 -04:00
Render.pm fix actions accounting 2010-01-04 12:51:45 -05:00
Setup.pm avoid ugly messages when running ikiwiki -setup on a *directory* 2009-09-23 14:56:18 -04:00
UserInfo.pm remove deprecated admin prefs 2008-12-24 16:16:03 -05:00
Wrapper.pm avoid -O default for CFLAGS, and document 2009-10-21 16:27:47 -04:00