{lineNumbers ? (
- _{lineCount}
+ _{originalLineCount}
) : undefined}
,
+ lines: any[]
+): number {
+ const [start, end] = getFocusExtremes(focus.prev, lines)
+ return end - start + 1
+}
diff --git a/packages/mdx/src/utils/focus.ts b/packages/mdx/src/utils/focus.ts
index 4c30a1f1..bf733366 100644
--- a/packages/mdx/src/utils/focus.ts
+++ b/packages/mdx/src/utils/focus.ts
@@ -102,7 +102,7 @@ export function parseExtremes(part: string) {
/**
* Return the first and last indexes to focus, both included
*/
-function getFocusExtremes(
+export function getFocusExtremes(
focus: FocusString,
lines: any[]
): [number, number] {