Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong code in PrismJS website #2487

Closed
sksar opened this issue Jul 26, 2020 · 1 comment
Closed

Wrong code in PrismJS website #2487

sksar opened this issue Jul 26, 2020 · 1 comment

Comments

@sksar
Copy link

sksar commented Jul 26, 2020

On the PrismJS website, this page: https://prismjs.com/plugins/line-numbers/
has the code:

<body class="line-number"> <!-- enabled for the whole page -->
	<!-- with line numbers -->
	<pre><code>...</code></pre>
	<!-- disabled for a specific element - without line numbers -->
	<pre class="no-line-numbers"><code>...</code></pre>
	<div class="no-line-numbers"> <!-- disabled for this subtree -->
		<!-- without line numbers -->
		<pre><code>...</code></pre>
		<!-- enabled for a specific element - with line numbers -->
		<pre class="line-number"><code>...</code></pre>
	</div>
</body>

The part where it says <pre class="line-number"> I believe it's wrong because it did not work for me.
When I changed it to <pre class="line-numbers"> it did work.
So I think maybe the code on the website is wrong, or am I missing something here?

[PrismJs Version 1.20.0]

@RunDevelopment
Copy link
Member

Thanks for reporting @sksar!

quentinvernot pushed a commit to TankerHQ/prismjs that referenced this issue Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants