From e1594d390baa49ae815498334b3776a35fd66d14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Ctalatkuyuk=E2=80=9D?= <“talatkuyuk@gmail.com”> Date: Tue, 25 Jun 2024 00:07:09 +0300 Subject: [PATCH] Fix linting warnings about max 80 chars per line --- readme.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 1de8a72..a09ba27 100644 --- a/readme.md +++ b/readme.md @@ -25,8 +25,8 @@ * [Example: registering](#example-registering) * [Example: aliases](#example-aliases) * [Example: sanitation](#example-sanitation) -* [Types](#types) * [Line Numbering and Line Highlighting](#line-numbering-and-line-highlighting) +* [Types](#types) * [Compatibility](#compatibility) * [Security](#security) * [Related](#related) @@ -353,13 +353,17 @@ console.log(String(file)) ## Line Numbering and Line Highlighting -You can add line numbering and line highlighting to code blocks via **`rehype-highlight-code-lines`** which is a separate `rehype plugin`. +You can add line numbering and line highlighting to code blocks +via **`rehype-highlight-code-lines`** which is a separate `rehype plugin`. -For more explanation see the package on [npm](https://www.npmjs.com/package/rehype-highlight-code-lines) or on [github](https://github.com/ipikuka/rehype-highlight-code-lines). +For more explanation see the package on +[npm](https://www.npmjs.com/package/rehype-highlight-code-lines) or on +[github](https://github.com/ipikuka/rehype-highlight-code-lines). ### Example: line numbering and line highlighting -You need to use **`rehype-highlight-code-lines`** after **`rehype-highlight`**, the order matters. +You need to use **`rehype-highlight-code-lines`** after **`rehype-highlight`**, +the order matters. Say we have the following file `example.html`: @@ -436,7 +440,7 @@ When in doubt, use [`rehype-sanitize`][rehype-sanitize]. * [`rehype-document`](https://github.com/rehypejs/rehype-document) — wrap a fragment in a document * [`rehype-highlight-code-lines`](https://github.com/ipikuka/rehype-highlight-code-lines) - — allow line numbering to code blocks and highlighting of desired code lines + — allow line numbering to code blocks and highlighting of desired lines ## Contribute