Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments in table cells are displayed incorrectly #12

Open
Chemnitz opened this issue Feb 7, 2018 · 1 comment
Open

Comments in table cells are displayed incorrectly #12

Chemnitz opened this issue Feb 7, 2018 · 1 comment

Comments

@Chemnitz
Copy link

Chemnitz commented Feb 7, 2018

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants