• Hi,
    I decided to install this plugin because the defaul code block from the WordPress editor execute the html code.
    Now, the code is shown inside a box on the article, but it adds at the begining:

    <pre class="wp-block-syntaxhighlighter-code">

    And </pre> at the end.

    My code is very simple…

    How can I solve it?

    The code that I see on the frontend:

    <pre class="wp-block-syntaxhighlighter-code"><ul>
        <li>
            <a href="{{store url=''}}/news.html">News</a>
        </li>
        <li><a href="{{store url=''}}sales.html">Sales</a>
    </li>
    </ul></pre>

    And it should be:

        <li>
            <a href="{{store url=''}}/news.html">News</a>
        </li>
        <li><a href="{{store url=''}}sales.html">Sales</a>
    </li>
    </ul>

    Thanks!!!!

    • This topic was modified 4 years, 10 months ago by carlasgo6.
Viewing 1 replies (of 1 total)
  • Plugin Author Alex (a11n)

    (@alexsanford1)

    Could you try a few things to troubleshoot?

    First, could you try with all of your other plugins disabled, to see whether there is caused by a plugin conflict? Please also try with a default theme.

    If the problem persists with plugins disabled and on a default theme, could you post here with your SyntaxHighlighter settings?

    Also, are you seeing the extra pre tags in the Block Editor itself as well, or only on the frontend?

Viewing 1 replies (of 1 total)
  • The topic ‘The code is embed but it adds tags’ is closed to new replies.