]> sipb.mit.edu Git - ikiwiki.git/commitdiff
* Htmlize parameters passed to the template preprocessor directive before
authorJoey Hess <joey@kitenet.net>
Wed, 12 Dec 2007 21:42:54 +0000 (16:42 -0500)
committerJoey Hess <joey@kitenet.net>
Wed, 12 Dec 2007 21:42:54 +0000 (16:42 -0500)
  inserting them into the html template. This ensures that markdown
  acts on them, even if the value is expanded inside a block-level html
  element in the html template. Closes: #454058
* Use a div in the note template rather than a span.

IkiWiki/Plugin/template.pm
debian/changelog
doc/templates/note.mdwn

index c87ba51029434acca2d3dd94ffd9389cec8e1231..27e475ae5339971027fd821f9ef2a9c36f7ec3fa 100644 (file)
@@ -49,9 +49,10 @@ sub preprocess (@) { #{{{
                $template->param($param => $params{$param});
        }
 
-       return IkiWiki::preprocess($params{page}, $params{destpage},
+       return IkiWiki::htmlize($params{page}, pagetype($pagesources{$params{page}}),
+               IkiWiki::preprocess($params{page}, $params{destpage},
                IkiWiki::filter($params{page}, $params{destpage},
-               $template->output));
+               $template->output)));
 } # }}}
 
 1
index 8c8f4aa9573ba3d8d04777010f9175a64f569d2c..0df68b2fc1dcbdd65fa2254b7827d7b2151281f5 100644 (file)
@@ -29,6 +29,11 @@ ikiwiki (2.16) UNRELEASED; urgency=low
     cached value.
   * Preserve input file modification times in output files.
   * Allow dashes in preprocessor directive commands, and shortcuts.
+  * Htmlize parameters passed to the template preprocessor directive before
+    inserting them into the html template. This ensures that markdown
+    acts on them, even if the value is expanded inside a block-level html
+    element in the html template. Closes: #454058
+  * Use a div in the note template rather than a span.
 
  -- Joey Hess <joeyh@debian.org>  Mon, 03 Dec 2007 14:47:36 -0500
 
index d992e023606cb39a58c169ab1986801a1e3f6616..4cc323c0e037204f170ae06596e1cb85efe93eb7 100644 (file)
@@ -1,6 +1,6 @@
-<span class="notebox">
+<div class="notebox">
 <TMPL_VAR text>
-</span>
+</div>
 <TMPL_UNLESS NAME="text">
 Use this template to insert a note into a page. The note will be styled to
 float to the right of other text on the page. This template has one