From 7e76f8cb2078290d765fc3b46c2a7209850db2a8 Mon Sep 17 00:00:00 2001 From: Chris LaFreniere <40371649+chlafreniere@users.noreply.github.com> Date: Tue, 15 Sep 2020 21:57:02 -0700 Subject: [PATCH] Add newline after caption (#12276) --- .../notebook/browser/cellViews/textCell.component.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/sql/workbench/contrib/notebook/browser/cellViews/textCell.component.ts b/src/sql/workbench/contrib/notebook/browser/cellViews/textCell.component.ts index 516a23b329..3860e416ea 100644 --- a/src/sql/workbench/contrib/notebook/browser/cellViews/textCell.component.ts +++ b/src/sql/workbench/contrib/notebook/browser/cellViews/textCell.component.ts @@ -441,6 +441,13 @@ export class TextCellComponent extends CellView implements OnInit, OnChanges { return '\n```\n' + node.textContent + '\n```\n'; } }); + this.turndownService.addRule('caption', { + filter: 'caption', + replacement: function (content, node) { + return `${node.outerHTML} + `; + } + }); this.turndownService.addRule('span', { filter: function (node, options) { return (