diff --git a/src/sql/workbench/contrib/notebook/test/browser/notebookMarkdown.test.ts b/src/sql/workbench/contrib/notebook/test/browser/notebookMarkdown.test.ts
index 552b54494d..4b72cae899 100644
--- a/src/sql/workbench/contrib/notebook/test/browser/notebookMarkdown.test.ts
+++ b/src/sql/workbench/contrib/notebook/test/browser/notebookMarkdown.test.ts
@@ -105,6 +105,11 @@ suite('NotebookMarkdownRenderer', () => {
assert.strictEqual(result.innerHTML, `

`, 'Cell attachment no image data failed');
});
+ test('table followed by blank line with space and then header renders correctly (#16245)', function (): void {
+ let result: HTMLElement = notebookMarkdownRenderer.renderMarkdown({ value: '\n \n### Hello', isTrusted: true });
+ assert.strictEqual(result.innerHTML, '\n\nHello
\n');
+ });
+
/**
* This suite contains tests that verify the expected parsing results for the current version of marked.js which were determined to have
* changed in newer versions of marked.js being brought in. They are put here as a staging ground to keep track of these differences, but once the