From 45e251c0d6c3124f7bde1b1f78f61a48dd07fd49 Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Tue, 31 Aug 2021 15:58:19 -0700 Subject: [PATCH] Add test (#16953) --- .../contrib/notebook/test/browser/notebookMarkdown.test.ts | 5 +++++ 1 file changed, 5 insertions(+) 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, `

altText

`, '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\n

Hello

\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