mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 09:35:38 -05:00
Bumped turndown version (#14343)
* bumped turndown * fix WYSIWYG test * remove comment Co-authored-by: Vasu Bhog <vabhog@microsoft.com>
This commit is contained in:
@@ -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';
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user