guh
This commit is contained in:
parent
f86e33ef3e
commit
38ef4d1c2f
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ function htmlToMarkdown(str, images = true, embed = true) {
|
|||
.replace(/<\/li>/gi, "\n")
|
||||
.replaceAll("\n\n", "\n");
|
||||
});
|
||||
str = str.replace(/<\/?span(\s*[^>]+)?>/gi, "");
|
||||
str = str.replace(/<\/?code(\s*[^>]+)?>/gi, "`");
|
||||
str = str.replace(/<\/?em(\s*[^>]+)?>/gi, "_");
|
||||
str = str.replace(/<\/?i(\s*[^>]+)?>/gi, "_");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue