From 00f4f04f0b8ec0357e615767e8dea2cc5c6f75ae Mon Sep 17 00:00:00 2001 From: Bruce Hyslop Date: Thu, 7 Feb 2019 23:20:34 -0800 Subject: [PATCH] Line Numbers plugin instructions clarifications (#1719) This fixes typos and makes clarifies some instructions of the Line Numbers plugin. --- plugins/line-numbers/index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/line-numbers/index.html b/plugins/line-numbers/index.html index 5af756cae0..43afcc20bd 100644 --- a/plugins/line-numbers/index.html +++ b/plugins/line-numbers/index.html @@ -27,9 +27,9 @@

Line Numbers

How to use

Obviously, this is supposed to work only for code blocks (<pre><code>) and not for inline code.

-

Add class line-numbers to your desired <pre> and line-numbers plugin will take care.

+

Add the line-numbers class to your desired <pre>, and the line-numbers plugin will take care of the rest.

Optional: You can specify the data-start (Number) attribute on the <pre> element. It will shift the line counter.

-

Optional: To support multiline line numbers using soft wrap add css white-space to pre-line or pre-wrap.

+

Optional: To support multiline line numbers using soft wrap, apply the CSS white-space: pre-line; or white-space: pre-wrap; to your desired <pre>.

@@ -49,9 +49,10 @@

Unknown languages

This raw text
 is not highlighted
 but it still has
-lines numbers
+line numbers

Soft wrap support

+

Please note the style="white-space:pre-wrap;" in the code below.