mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
Turndown: remove \n in table cell
When pasting table from OneNote, there may be redundant \n that will break the table.
This commit is contained in:
parent
627664bb0e
commit
0eab02de9b
@ -44,6 +44,7 @@ var configs = { autoHead: false };
|
|||||||
rules.tableCell = {
|
rules.tableCell = {
|
||||||
filter: ['th', 'td'],
|
filter: ['th', 'td'],
|
||||||
replacement: function (content, node) {
|
replacement: function (content, node) {
|
||||||
|
content = content.replace(/[\r\n]/g, '');
|
||||||
return cell(content, node)
|
return cell(content, node)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user