michitux / dokuwiki-plugin-text

renders page as plain text. USAGE: <pagename>?do=export_text
3 stars 4 forks source link

Don't render syntax of specific plugins #15

Open jorbig opened 1 week ago

jorbig commented 1 week ago

I adjusted renderer.php to let it stop rendering bible references (that are normally shown in a tooltip by the bible plugin).

    //handle plugin rendering
    function plugin($name, $data, $state = '', $match = '') {

        if ($name === 'bible') {
            $this->doc .= $match;
            return;
        }

        /** @var DokuWiki_Syntax_Plugin $plugin */

But maybe it's an idea to have a config setting where we can enter plugin names that need to be excluded from rendering?