Skip to content

Annotation for whole code block instead of inline annotation #497

Answered by pomber
tomw1808 asked this question in Q&A
Discussion options

You must be logged in to vote

insert some codehike annotation before line 1, before line 3 and before line 6

that's the way (if you are talking about inserting them in the annotations array)

it's totally fine to do something like:

const highlighted = await highlight(code, theme)
highlighted.annotations.push(something)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tomw1808
Comment options

Answer selected by tomw1808
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants