diff --git a/extensions/markdown-language-features/preview-src/scroll-sync.ts b/extensions/markdown-language-features/preview-src/scroll-sync.ts index 5846a1b8bcb..4f5e3f7d2fe 100644 --- a/extensions/markdown-language-features/preview-src/scroll-sync.ts +++ b/extensions/markdown-language-features/preview-src/scroll-sync.ts @@ -56,9 +56,6 @@ const getCodeLineElements = (() => { continue; } - - - if (element.tagName === 'CODE' && element.parentElement && element.parentElement.tagName === 'PRE') { // Fenced code blocks are a special case since the `code-line` can only be marked on // the `` element and not the parent `
` element.
@@ -253,7 +250,6 @@ export function scrollToRevealSourceLine(line: number, documentVersion: number,
 		scrollTo = window.scrollY + previousTop + (rect.height * progressInElement);
 	}
 
-
 	window.scroll(window.scrollX, Math.max(1, scrollTo));
 }
 
@@ -324,4 +320,3 @@ function* getParentsWithTagName(element: HTMLElement, tag
 		}
 	}
 }
-