Skip to content

Commit 00f4f04

Browse files
bruceonthelooseRunDevelopment
authored andcommitted
Line Numbers plugin instructions clarifications (#1719)
This fixes typos and makes clarifies some instructions of the Line Numbers plugin.
1 parent 217a6ea commit 00f4f04

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

plugins/line-numbers/index.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ <h2>Line Numbers</h2>
2727
<h1>How to use</h1>
2828

2929
<p>Obviously, this is supposed to work only for code blocks (<code>&lt;pre>&lt;code></code>) and not for inline code.</p>
30-
<p>Add class <strong>line-numbers</strong> to your desired <code>&lt;pre></code> and line-numbers plugin will take care.</p>
30+
<p>Add the <strong>line-numbers</strong> class to your desired <code>&lt;pre></code>, and the line-numbers plugin will take care of the rest.</p>
3131
<p>Optional: You can specify the <code>data-start</code> (Number) attribute on the <code>&lt;pre></code> element. It will shift the line counter.</p>
32-
<p>Optional: To support multiline line numbers using soft wrap add css <code>white-space</code> to <code>pre-line</code> or <code>pre-wrap</code>.</p>
32+
<p>Optional: To support multiline line numbers using soft wrap, apply the CSS <code>white-space: pre-line;</code> or <code>white-space: pre-wrap;</code> to your desired <code>&lt;pre></code>.</p>
3333
</section>
3434

3535
<section>
@@ -49,9 +49,10 @@ <h2>Unknown languages</h2>
4949
<pre class="language-none line-numbers"><code>This raw text
5050
is not highlighted
5151
but it still has
52-
lines numbers</code></pre>
52+
line numbers</code></pre>
5353

5454
<h2>Soft wrap support</h2>
55+
<p>Please note the <code>style="white-space:pre-wrap;"</code> in the code below.</p>
5556
<pre class="line-numbers" data-src="plugins/line-numbers/index.html" data-start="-5" style="white-space:pre-wrap;"></pre>
5657

5758
</section>

0 commit comments

Comments
 (0)