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 Singh 2023-08-24 15:50:00 +05:30 committed by GitHub
parent 42cd56578d
commit 3e63c2b717
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;