Bumped turndown version (#14343)

* bumped turndown

* fix WYSIWYG test

* remove comment

Co-authored-by: Vasu Bhog <vabhog@microsoft.com>
This commit is contained in:
Christopher Suh
2021-02-18 20:36:32 -05:00
committed by GitHub
parent ce18341284
commit fcd099dd64
7 changed files with 63 additions and 1605 deletions

View File

@@ -98,16 +98,6 @@ rules['table'] = {
replacement: function (content, node) {
// Ensure there are no blank lines
content = content.replace('\n\n', '\n');
// if the headings are empty, add border line and headings to keep table format
if (node.tHead?.innerText === '') {
let emptyHeader = '\n\n|';
let border = '\n|';
for (let i = 0; i < node.rows[0].childNodes.length; i++) {
emptyHeader += ' |';
border += ' --- |';
}
return emptyHeader + border + content + '\n\n';
}
return '\n\n' + content + '\n\n';
}
};