-
Notifications
You must be signed in to change notification settings - Fork 236
Closed
Description
The syntax highlighter that has a few issues with the verbatim text in the perlsecret manual page:
- https://metacpan.org/pod/distribution/perlsecret/lib/perlsecret.pod#Bang-bang should show
!!but doesn't - https://metacpan.org/pod/distribution/perlsecret/lib/perlsecret.pod#Eskimo-greeting should show
}{but doesn't - https://metacpan.org/pod/distribution/perlsecret/lib/perlsecret.pod#Inchworm should show
~~but doesn't
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"> </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 . In my opinion, it should just return non-highlighted text.