We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a93310 commit 9a350ceCopy full SHA for 9a350ce
packages/mdx/src/smooth-code/annotations.tsx
@@ -205,6 +205,12 @@ function annotateMultilineSide(
205
while (lineIndex < lines.length) {
206
const annotation = annotations[0]
207
let line = lines[lineIndex]
208
+ if (
209
+ annotation &&
210
+ getLineNumber(line) > annotation.lineNumbers.start
211
+ ) {
212
+ throw "Code Hike can't handle two annotations for the same line"
213
+ }
214
if (
215
annotation &&
216
getLineNumber(line) === annotation.lineNumbers.start
0 commit comments