Skip to content

Commit

Permalink
fixed linting warnings about max 80 char 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 caf276c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
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 caf276c

Please sign in to comment.