PrismJS / prism

Lightweight, robust, elegant syntax highlighting.
https://prismjs.com
MIT License
12.34k stars 1.29k forks source link

Plugin command-line examples don't work #3781

Open MartinSavc opened 8 months ago

MartinSavc commented 8 months ago

Information:

Description The examples for using the command line plugin here show that you only need to specify the class 'command-line', like so:

\<pre class="command-line">

However prismjs doesn't pick this up. The additional language of the command-line must also be specified like so:

\<pre class="command-line language-bash">

I solved this issue by looking that the source code of the examples.

Examples It can be demonstrated on the examples website here by editing the source code and removing the language-* class from a \<pre>.