make MarkDown into a class and fixed emojis
This commit is contained in:
parent
36fc3fecc2
commit
ec5b86b276
12 changed files with 957 additions and 848 deletions
|
@ -1,6 +1,6 @@
|
|||
//const usercache={};
|
||||
import { Member } from "./member.js";
|
||||
import { markdown } from "./markdown.js";
|
||||
import { MarkDown } from "./markdown.js";
|
||||
import { Contextmenu } from "./contextmenu.js";
|
||||
class User {
|
||||
static userids = {};
|
||||
|
@ -48,6 +48,10 @@ class User {
|
|||
}
|
||||
if (dontclone) {
|
||||
for (const thing of Object.keys(userjson)) {
|
||||
if (thing === "bio") {
|
||||
this.bio = new MarkDown(userjson[thing], this.localuser);
|
||||
continue;
|
||||
}
|
||||
this[thing] = userjson[thing];
|
||||
}
|
||||
this.hypotheticalpfp = false;
|
||||
|
@ -146,7 +150,7 @@ class User {
|
|||
userbody.appendChild(pronounshtml);
|
||||
const rule = document.createElement("hr");
|
||||
userbody.appendChild(rule);
|
||||
const biohtml = markdown(this.bio);
|
||||
const biohtml = this.bio.makeHTML();
|
||||
userbody.appendChild(biohtml);
|
||||
}
|
||||
console.log(div);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue