Add newline after caption (#12276) (#12340)

This commit is contained in:
Chris LaFreniere
2020-09-15 23:07:18 -07:00
committed by GitHub
parent b937fdee7a
commit 3476f5ae38

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 (