diff options
Diffstat (limited to 'includes/pear/Text/Wiki/Render/Creole/Heading.php')
| -rw-r--r-- | includes/pear/Text/Wiki/Render/Creole/Heading.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/includes/pear/Text/Wiki/Render/Creole/Heading.php b/includes/pear/Text/Wiki/Render/Creole/Heading.php new file mode 100644 index 0000000..94ebf84 --- /dev/null +++ b/includes/pear/Text/Wiki/Render/Creole/Heading.php @@ -0,0 +1,16 @@ +<?php + +class Text_Wiki_Render_Creole_Heading extends Text_Wiki_Render { + function token($options) + { + if ($options['type'] == 'start') { + return str_pad('', $options['level'], '=') . ' '; + } + else if ($options['type'] == 'end') { + // next line would add trailing '=' signs + // return ' ' . str_pad('', $options['level'], '=') . "\n\n"; + return "\n\n"; + } + } +} +?>
\ No newline at end of file |
