Skip to content

Commit

Permalink
Fix linting warnings about max 80 chars per line
Browse files Browse the repository at this point in the history
  • Loading branch information
“talatkuyuk” committed Jun 24, 2024
1 parent 863dd1e commit e1594d3
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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`:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e1594d3

Please sign in to comment.