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>
This commit is contained in:
Abhijeet SinghandAbhijeet Singh authored and GitHub committed 2023-08-24 11:20:00 +01:00
1 parent 42cd56578d
commit 3e63c2b717
1 file changed
+7
+7
View File
@@ -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;