Skip to content

Problems with several code blocks in the same page #3363

@BartolomeSintes

Description

@BartolomeSintes

Information:

  • Prism version: 1.27 downloaded from prismjs.com
  • Plugins: Copy to Clipboard + Toolbar (and also Command line, Line numbers, Show invisibles and Keep markup)
  • Environment: Browser

Description
I have updated prism.js from version 1.25 into 1.27 (with Copy to Clipboard plugin) and prism does not work properly now.
The html source code of my pages is like this:

<div class="codigo">
        <pre>
<code class="language-python">import webbrowser

If I use the prism version 1.25 I downloaded last September, this code is shown in the Firefox code inspector like this:

<div class="codigo">
    <div class="code-toolbar">
        <pre class="language-python" tabindex="0">
<code class="language-python">import webbrowser

But if I use prism version 1.27, this code is shown in the Firefox code inspector like this:

<div class="codigo">
    <div class="code-toolbar">
        <pre class="language-none" tabindex="0">
<code class="language-python language-none">import webbrowser

I you need aditional information or file samples, please ask for them and I would provide them the best I can.

Thanking you in advance,
Bartolome Sintes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions