Skip to content

Commit

Permalink
docs: add line number attribute notice
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Mar 27, 2023
1 parent fab5e3c commit 6bdc0d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/content/3.guide/1.writing/2.markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ Nuxt Content uses [Shiki](https://github.com/shikijs/shiki), that colors tokens

Code highlighting works both on [`ProseCode`](/api/components/prose#prosecode) and [`ProseCodeInline`](/api/components/prose#prosecodeinline).

Each line of a code block gets its line number in the `line` attribute so lines can be labeled or individually styled.

::alert{type=info}
[Read the API reference to configure or entirely disable syntax highlighting.](/api/configuration#highlight)
::
Expand Down

0 comments on commit 6bdc0d9

Please sign in to comment.