Closed endigo9740 closed 4 months ago
This was closed per #95. Not sure if I should have created a seperate PR instead, just letting you know @endigo9740. Current API is:
<CodeBlock lang="..." code="..." highlight="{1}" />
<!-- Or... -->
<CodeBlock lang="..." code="..." highlight="{[1,2,3]}" />
Link to the Page
https://shiki.style/guide/decorations#decorations
Describe the Issue (screenshots encouraged!)
Let's add a new prop to the
<CodeBlock>
to support decorators.https://shiki.style/guide/decorations#decorations
Something like:
If we feel
decorators
is too long, we can shorten it to something likemark
, ala Essential Code:https://expressive-code.com/key-features/code-component/#mark--ins--del