fix: Italics not being shown in the description after saving (#10848)
* added ignore rule for em tag in turndown * added ignore rule for em tag in turndown --------- Co-authored-by: Abhijeet Singh <asing9829@gmail.com>pull/10929/head^2
parent
42cd56578d
commit
3e63c2b717
|
@ -31,6 +31,13 @@ turndownService.addRule("enter", {
|
|||
},
|
||||
});
|
||||
|
||||
turndownService.addRule("ignoreEmphasized", {
|
||||
filter: "em",
|
||||
replacement: function (content) {
|
||||
return content;
|
||||
},
|
||||
});
|
||||
|
||||
function isShiftEnter(node: HTMLElement) {
|
||||
let currentNode: HTMLElement | null | ParentNode = node;
|
||||
|
||||
|
|
Loading…
Reference in New Issue