Skip to content

Commit 453079b

Browse files
authoredJul 26, 2020
Line Numbers: Fixed class name on website
This fixes #2487.
1 parent a0efa40 commit 453079b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎plugins/line-numbers/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h1>How to use</h1>
2424
<p>Obviously, this is supposed to work only for code blocks (<code>&lt;pre>&lt;code></code>) and not for inline code.</p>
2525
<p>Add the <code>line-numbers</code> class to your desired <code>&lt;pre></code> or any of its ancestors, and the Line Numbers plugin will take care of the rest. To give all code blocks line numbers, add the <code>line-numbers</code> class to the <code>&lt;body></code> of the page. This is part of a general activation mechanism where adding the <code>line-numbers</code> (or <code>no-line-numbers</code>) class to any element will enable (or disable) the Line Numbers plugin for all code blocks in that element. <br> Example:</p>
2626

27-
<pre><code>&lt;body class="line-number"> &lt;!-- enabled for the whole page -->
27+
<pre><code>&lt;body class="line-numbers"> &lt;!-- enabled for the whole page -->
2828

2929
&lt;!-- with line numbers -->
3030
&lt;pre>&lt;code>...&lt;/code>&lt;/pre>
@@ -36,7 +36,7 @@ <h1>How to use</h1>
3636
&lt;!-- without line numbers -->
3737
&lt;pre>&lt;code>...&lt;/code>&lt;/pre>
3838
&lt;!-- enabled for a specific element - with line numbers -->
39-
&lt;pre class="line-number">&lt;code>...&lt;/code>&lt;/pre>
39+
&lt;pre class="line-numbers">&lt;code>...&lt;/code>&lt;/pre>
4040

4141
&lt;/div>
4242
&lt;/body></code></pre>

0 commit comments

Comments
 (0)
Please sign in to comment.