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 (