xref: /plugin/mikioplugin/syntax/small.php (revision 3926ad025505e3e1e97d1fa0c4fe82918a2c8a6f)
1<?php
2/**
3 * Mikio Syntax Plugin: Small
4*
5 * @link        http://github.com/nomadjimbob/mikioplugin
6 * @license     GPL 2 (http://www.gnu.org/licenses/gpl.html)
7 * @author      James Collins <james.collins@outlook.com.au>
8 */
9if (!defined('DOKU_INC')) die();
10if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
11require_once(dirname(__FILE__).'/core.php');
12
13class syntax_plugin_mikioplugin_small extends syntax_plugin_mikioplugin_core {
14    public $tag                 = 'small';
15    public $hasEndTag           = true;
16
17
18    public function render_lexer_enter(Doku_Renderer $renderer, $data) {
19        $renderer->doc .= '<small class="' . $this->elemClass . ' ' . $this->classPrefix . 'small">';
20    }
21
22
23    public function render_lexer_exit(Doku_Renderer $renderer, $data) {
24        $renderer->doc .= '</small>';
25    }
26}
27?>