1<?php
2
3namespace dokuwiki\plugin\struct\types;
4
5class Wiki extends LongText
6{
7    /**
8     * @param int|string $value
9     * @param \Doku_Renderer $R
10     * @param string $mode
11     * @return bool
12     */
13    public function renderValue($value, \Doku_Renderer $R, $mode)
14    {
15        if ($mode === 'struct_csv') {
16            $R->doc .= $value;
17            return true;
18        }
19
20        $value = $this->config['prefix'] . $value . $this->config['postfix'];
21        $doc = p_render($mode, p_get_instructions($value), $info);
22        $R->doc .= $doc; // FIXME this probably does not work for all renderers
23        return true;
24    }
25}
26