jean-michel-gonet / dokuwiki-plugin-latexport

A latex export renderer plugin for Dokuwiki
1 stars 1 forks source link

Add support for latexport in Anchor plugin #20

Closed jean-michel-gonet closed 6 years ago

jean-michel-gonet commented 6 years ago

Why?

Condition of satisfaction

    function render($mode, Doku_Renderer $renderer, $data) {
        if ($mode == 'latexport') {
            $renderer->anchor($data[0], $data[1]);
        } else {
            $renderer->doc .= '<a name="' .htmlspecialchars($data[0]) . '">' .htmlspecialchars($data[1]) . '</a>';          
        }
    }
jean-michel-gonet commented 6 years ago

Added in documentation