bruh
This commit is contained in:
parent
9dcc211fd9
commit
f0d23e2367
1 changed files with 4 additions and 1 deletions
|
@ -50,7 +50,10 @@ function whenYouWalking(tree, images = true, embed = true) {
|
||||||
|
|
||||||
for (const elem of tree) {
|
for (const elem of tree) {
|
||||||
if (elem["#text"]) {
|
if (elem["#text"]) {
|
||||||
str += elem["#text"].replaceAll(/[\\*\-_~#<[]/g, "\\$&").replaceAll("||", "|\u200b|");
|
str += elem["#text"]
|
||||||
|
.toString()
|
||||||
|
.replaceAll(/[\\*\-_~#<[]/g, "\\$&")
|
||||||
|
.replaceAll("||", "|\u200b|");
|
||||||
} else if (elem.a) {
|
} else if (elem.a) {
|
||||||
const content = whenYouWalking(elem.a, images, embed);
|
const content = whenYouWalking(elem.a, images, embed);
|
||||||
const link = elem.$href ?? elem[":@"]?.$href;
|
const link = elem.$href ?? elem[":@"]?.$href;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue