Skip to content

Some verbatim text not showing in POD #1228

@book

Description

@book

The syntax highlighter that has a few issues with the verbatim text in the perlsecret manual page:

When viewing the source with my browser, the HTML code looks fine:

<h2 id="Bang-bang">Bang bang</h2>
<pre class="brush: pl; class-name: 'highlight'; toolbar: false; gutter: false; metacpan-verbatim">    !!</pre>

but when looking with the browser's inspector, the DOM looks like this:

<h2 id="Bang-bang">Bang bang</h2>
 <div>
  <div id="highlighter_440921" class="syntaxhighlighter nogutter highlight pl">
   <table border="0" cellpadding="0" cellspacing="0">
    <tbody>
     <tr>
      <td class="code">
       <div class="container">
        <div class="line number1 index0 alt2">&nbsp;</div>
       </div>
      </td>
     </tr>
    </tbody>
   </table>
  </div>
 </div>

which makes me think that a JavaScript syntax highlighter is used, and when it doesn't understand the given text, it just outputs &nbsp;. In my opinion, it should just return non-highlighted text.

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions