Add newline after caption (#12276)

This commit is contained in:
Chris LaFreniere
2020-09-15 21:57:02 -07:00
committed by GitHub
parent 69f5bc1725
commit 7e76f8cb20

View File

@@ -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 (