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
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
1 changed files with 7 additions and 0 deletions

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;