X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2FText%2FWiki%2FRender%2FXhtml%2FHeading.php;fp=include%2FText%2FWiki%2FRender%2FXhtml%2FHeading.php;h=c5e3074953acd98418ecde8786055b84527fb6d5;hb=6855525e48fad5de270500a5445c4f4ff85d8bda;hp=0000000000000000000000000000000000000000;hpb=e69709aa8ee6108a1197e46b45367ba8dab55a52;p=diogenes.git diff --git a/include/Text/Wiki/Render/Xhtml/Heading.php b/include/Text/Wiki/Render/Xhtml/Heading.php new file mode 100644 index 0000000..c5e3074 --- /dev/null +++ b/include/Text/Wiki/Render/Xhtml/Heading.php @@ -0,0 +1,29 @@ + null, + 'css_h2' => null, + 'css_h3' => null, + 'css_h4' => null, + 'css_h5' => null, + 'css_h6' => null + ); + + function token($options) + { + // get nice variable names (id, type, level) + extract($options); + + if ($type == 'start') { + $css = $this->formatConf(' class="%s"', "css_h$level"); + return ""; + } + + if ($type == 'end') { + return "\n"; + } + } +} +?> \ No newline at end of file