dokufreaks / plugin-comment

http://dokuwiki.org/plugin:comment
GNU General Public License v2.0
9 stars 3 forks source link

Comments in table cells are displayed incorrectly #12

Open Chemnitz opened 6 years ago

Chemnitz commented 6 years ago

In DokuWiki version 2017-02-19e (Frusterick Manners), the comment within table cells is not displayed correctly. To be more specific, a "/" of the closing tag is displayed.

lpaulsen93 commented 6 years ago

I think the syntax pattern is unreasonably complex. Open the file comment/syntax.php. You should find the following section:

    function connectTo($mode) {
        $this->Lexer->addSpecialPattern("/\*.*?\*|\s+/\*.*?\*/", $mode, 'plugin_comment');
    }

Change it to:

    function connectTo($mode) {
        $this->Lexer->addSpecialPattern("/\*.*?\*/", $mode, 'plugin_comment');
    }

This solved your issue for me and did not seem to have negative side effects. Please test yourself and give some feedback.